Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 374 Bytes
require 'rake'
require 'fileutils'
ROOT_DIR = File.dirname(__FILE__)
SITE_DIR = File.join(ROOT_DIR, '_site')
SERVER_PORT = 4000
desc "Clear generated site."
task :clean do
rm_rf Dir.glob(File.join(SITE_DIR, '*'))
end
desc "Generate site."
task :build do
sh "jekyll"
end
desc "Run local jekyll server"
task :server do
sh "jekyll --server #{SERVER_PORT} --auto"
end