Skip to content
Browse files

auto update docs

  • Loading branch information...
1 parent 5b75169 commit 5ba777369a8167a3c3d3700eeb856cc0c26637c7 @leah leah committed Oct 19, 2009
Showing with 17 additions and 2 deletions.
  1. +0 −2 README.md
  2. +17 −0 Rakefile
View
2 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.
View
17 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."

0 comments on commit 5ba7773

Please sign in to comment.
Something went wrong with that request. Please try again.