Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.764 kb
require 'rainbow'
task :build do
`nanoc`
end
task :deploy => [:build] do
end
task :serve do
PageServer.serve!
end
task :setup do
silence = "2>/dev/null"
print "Creating source branch... "
`git branch -m master source #{silence}`
`git push -u origin source #{silence}`
print "done".color(:green)
puts
print "Creating output directory... "
url = `git config --get remote.origin.url`.chomp
`git clone #{url} output #{silence}`
print "done".color(:green)
puts
print "Isolating master branch... "
`cd output && git symbolic-ref HEAD refs/heads/master && rm .git/index && git clean -fdx && touch index.html && git add . && git commit -a -m 'First markup' && git push origin master #{silence}`
print "done".color(:green)
puts
end
Jump to Line
Something went wrong with that request. Please try again.