Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 77e43afc63
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (19 sloc) 0.538 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
def jekyll(opts = "")
  sh "pygmentize -V > /dev/null" do |ok, res|
    ok or fail "Pygments not found: Install it with `sudo apt-get install python-pygments` or `sudo easy_install 'Pygments>=1.3'`."
  end
  sh "rm -rf _site"
  sh "mkdir -p _site"
  sh "bundle exec jekyll " + opts
  sh "ln -s images/favicon.ico _site/"
  sh "cp -a _deploy.{php,sh} _site/"
end

task :default => :server

desc "Build site using Jekyll"
task :build do
  jekyll
end

desc "Serve on localhost with port 4000"
task :server do
  jekyll("--server --auto")
end
Something went wrong with that request. Please try again.