diff --git a/README.md b/README.md index b40d93f..a7b5125 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ Hurl ==== -Kinda like [Curl](http://curl.haxx.se/). - Hurl was created for the Rails Rumble 2009 in 48 hours by [Leah Culver][2] and [Chris Wanstrath][3]. Now Hurl is an open source project for your enjoyment. diff --git a/Rakefile b/Rakefile index 1c7f295..3131245 100644 --- a/Rakefile +++ b/Rakefile @@ -18,6 +18,23 @@ namespace :hurl do def installed?(app) not `which #{app}`.chomp.empty? end + + desc "Generate GitHub pages." + task :pages do + require "mustache" + require "rdiscount" + view = Mustache.new + view.template = File.read("docs/index.mustache") + view[:content] = Markdown.new(File.read("README.md")).to_html + File.open("new_index.html", "w") do |f| + f.puts view.render + end + system "git checkout gh-pages" + system "mv new_index.html index.html" + system "git commit -a -m 'auto update docs'" + system "git push origin gh-pages" + system "git checkout master" + end end desc "Start everything."