Browse Source

Improved theme install process

added missing assets
unreleased_contents
Brandon Mathis 14 years ago
parent
commit
519e234aab
  1. 4
      .gitignore
  2. 11
      Rakefile
  3. 1
      _plugins/compass_compiler.rb
  4. 1
      _plugins/generate_styles.rb
  5. BIN
      themes/classic/source/images/bird_32_gray.png
  6. BIN
      themes/classic/source/images/bird_32_gray_fail.png

4
.gitignore

@ -3,10 +3,6 @@
.sass-cache .sass-cache
.gist_cache .gist_cache
_cache _cache
_source
_sass
public public
source/_stash source/_stash
source/javascripts/libs/node_modules
source/javascripts/libs/syntax-highlighter
vendor/ruby vendor/ruby

11
Rakefile

@ -37,17 +37,6 @@ task :install, :theme do |t, args|
system "cp -R themes/"+theme+"/source source" system "cp -R themes/"+theme+"/source source"
system "cp -R themes/"+theme+"/sass sass" system "cp -R themes/"+theme+"/sass sass"
system "cp -R themes/"+theme+"/_plugins/ _plugins/" system "cp -R themes/"+theme+"/_plugins/ _plugins/"
# The directories source and sass are ignored for development, but when Octopress is installed
# Users must be able to commit these directories, so this removes those lines from the gitignore
puts "## Cleaning up..."
new_content = ""
File.read('.gitignore').each_line do |e|
new_content << e unless e.strip == 'source' || e.strip == 'sass'
end
File.open('.gitignore', 'w') do |io|
io << new_content
end
end end
## if you're deploying with github, change the default deploy to push_github ## if you're deploying with github, change the default deploy to push_github

1
_plugins/compass_compiler.rb

@ -0,0 +1 @@
system "compass compile --css-dir source/stylesheets"

1
_plugins/generate_styles.rb

@ -1 +0,0 @@
system "sleep 0.5; compass compile --css-dir source/stylesheets"

BIN
themes/classic/source/images/bird_32_gray.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
themes/classic/source/images/bird_32_gray_fail.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Loading…
Cancel
Save