Skip to content

Commit

Permalink
auto update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leah committed Oct 20, 2009
1 parent 5b75169 commit 5ba7773
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 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.

Expand Down
17 changes: 17 additions & 0 deletions Rakefile
Expand Up @@ -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."
Expand Down

0 comments on commit 5ba7773

Please sign in to comment.