diff --git a/.gitignore b/.gitignore index c08f9add..dff1a3ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -_site \ No newline at end of file +_site +isotope-site.zip \ No newline at end of file diff --git a/Rakefile b/Rakefile index ff5c04aa..461a4d78 100644 --- a/Rakefile +++ b/Rakefile @@ -20,4 +20,16 @@ task :min do f.write min end end +end + +desc "Zips _site/ into isotope-site.zip" +task :zip do + # makes isotope-site/ directory + sh 'mkdir isotope-site;' + # copies _site/ + sh 'cp -r _site/ isotope-site;' + # zips isotope-site/ + sh 'zip -r isotope-site isotope-site/;' + # removes isotope-site/ + sh 'rm -rf isotope-site;' end \ No newline at end of file