From 571163795f9a9572c42eeb47aabb07b1b3511545 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Wed, 23 Jun 2010 18:53:20 -0400 Subject: [PATCH] task to build pages --- Rakefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 3cc18e6..1409450 100644 --- a/Rakefile +++ b/Rakefile @@ -26,12 +26,21 @@ end desc 'Build the manual' task :man do - require 'ronn' ENV['RONN_MANUAL'] = "Foreman Manual" ENV['RONN_ORGANIZATION'] = "Foreman #{Foreman::VERSION}" sh "ronn -w -s toc -r5 --markdown man/*.ronn" - sh "git add man/*.?" - sh "git commit -m \"updating man pages\"" +end + +task :pages => :man do + sh %{ + cp man/foreman.1.html /tmp/foreman.1.html + git checkout gh-pages + rm ./index.html + cp /tmp/foreman.1.html ./index.html + git add -u index.html + git commit -m "rebuilding man page" + git push origin -f gh-pages + } end ######################################################