Aligns naming of .pygments-cache, .gist-cache and .sass-cache
This commit is contained in:
parent
41cbe78251
commit
f6bf894387
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,8 +1,8 @@
|
|||||||
.bundle
|
.bundle
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.sass-cache
|
.sass-cache
|
||||||
_gist_cache
|
.gist-cache
|
||||||
_code_cache
|
.pygments-cache
|
||||||
_deploy
|
_deploy
|
||||||
public
|
public
|
||||||
sass.old
|
sass.old
|
||||||
|
4
Rakefile
4
Rakefile
@ -156,9 +156,9 @@ task :integrate do
|
|||||||
FileUtils.mv Dir.glob("#{source_dir}/#{stash_dir}/*.*"), "#{source_dir}/#{posts_dir}/"
|
FileUtils.mv Dir.glob("#{source_dir}/#{stash_dir}/*.*"), "#{source_dir}/#{posts_dir}/"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Clean out caches: _code_cache, _gist_cache, .sass-cache"
|
desc "Clean out caches: .pygments-cache, .gist-cache, .sass-cache"
|
||||||
task :clean do
|
task :clean do
|
||||||
rm_rf ["_code_cache/**", "_gist_cache/**", ".sass-cache/**", "source/stylesheets/screen.css"]
|
rm_rf [".pygments-cache/**", ".gist-cache/**", ".sass-cache/**", "source/stylesheets/screen.css"]
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/custom"
|
desc "Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/custom"
|
||||||
|
@ -16,7 +16,7 @@ module Jekyll
|
|||||||
super
|
super
|
||||||
@text = text
|
@text = text
|
||||||
@cache_disabled = false
|
@cache_disabled = false
|
||||||
@cache_folder = File.expand_path "../_gist_cache", File.dirname(__FILE__)
|
@cache_folder = File.expand_path "../.gist-cache", File.dirname(__FILE__)
|
||||||
FileUtils.mkdir_p @cache_folder
|
FileUtils.mkdir_p @cache_folder
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ require 'pygments'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
|
|
||||||
PYGMENTS_CACHE_DIR = File.expand_path('../../_code_cache', __FILE__)
|
PYGMENTS_CACHE_DIR = File.expand_path('../../.pygments-cache', __FILE__)
|
||||||
FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)
|
FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)
|
||||||
|
|
||||||
module HighlightCode
|
module HighlightCode
|
||||||
|
Loading…
Reference in New Issue
Block a user