require 'jekyll' task :default => [:buildsite] desc 'Build the site' task :buildsite do def Jekyll::env "production" end Jekyll::Commands::Build.process({}) end desc 'Clean up built files' task :clean do puts 'Cleaning up _site...'.bold Jekyll::Commands::Clean.process({}) end