...
|
...
|
@@ -124,6 +124,27 @@ task :clean do
|
124
|
124
|
system "rm -rf _code_cache/** _gist_cache/** .sass-cache/**"
|
125
|
125
|
end
|
126
|
126
|
|
|
127
|
+desc "Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/custom"
|
|
128
|
+task :update_style, :theme do |t, args|
|
|
129
|
+ theme = args.theme || 'classic'
|
|
130
|
+ system "mv sass sass.old"
|
|
131
|
+ puts "## Moved styles into sass.old/"
|
|
132
|
+ system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/"
|
|
133
|
+ cp_r "sass.old/custom/.", "sass/custom"
|
|
134
|
+ puts "## Updated Sass ##"
|
|
135
|
+end
|
|
136
|
+
|
|
137
|
+desc "Move source to source.old, install source theme updates, replace source/_includes/navigation.html with source.old's navigation"
|
|
138
|
+task :update_source, :theme do |t, args|
|
|
139
|
+ theme = args.theme || 'classic'
|
|
140
|
+ system "mv #{source_dir} #{source_dir}.old"
|
|
141
|
+ puts "moved #{source_dir} into #{source_dir}.old/"
|
|
142
|
+ system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
|
|
143
|
+ system "cp -Rn #{source_dir}.old/. #{source_dir}"
|
|
144
|
+ system "cp -f #{source_dir}.old/_includes/navigation.html #{source_dir}/_includes/navigation.html"
|
|
145
|
+ puts "## Updated #{source_dir} ##"
|
|
146
|
+end
|
|
147
|
+
|
127
|
148
|
##############
|
128
|
149
|
# Deploying #
|
129
|
150
|
##############
|