Permalink
Browse files

remove everything in docs before regenerating

  • Loading branch information...
qrush committed Jan 12, 2012
1 parent 3314999 commit a060af52a26c08ae092f3dbea3af8a6adfdffa41
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -17,7 +17,7 @@ require 'rocco/tasks'
Rocco::make 'docs/'
desc 'Build rocco docs'
-task :docs => [:rocco]
+task :docs => :rocco
directory 'docs/'
desc 'Build docs and open in browser for the reading'
@@ -62,6 +62,6 @@ end
# Update the pages/ directory clone
file 'docs/.git' => ['docs/'] do |f|
sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name)
- sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ."
+ sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && git rm -r . && git commit -m 'blank out' && touch ."
end
CLOBBER.include 'docs/.git'

0 comments on commit a060af5

Please sign in to comment.