Permalink
Browse files

remove docs submodule

  • Loading branch information...
jnewland committed Jan 26, 2009
1 parent e395714 commit 5c46be817bc16ebff39b10bc96778dfca4610c6c
Showing with 19 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +18 −8 Rakefile
  3. +0 −1 doc
View
@@ -1 +1,2 @@
*.gem
+doc
View
@@ -52,12 +52,22 @@ end
task :push => [:redoc, :pull, :spec, :_push]
task :redoc do
- system "cd doc && git pull origin gh-pages && git pull github gh-pages"
- system "mv doc tmpdoc"
- Rake::Task['rdoc'].invoke
- system "cp -r doc/* tmpdoc/"
+ #clean
+ system "git checkout gh-pages && git pull origin gh-pages && git pull github gh-pages"
+ system "rm -rf doc"
+ system "git checkout master"
system "rm -rf doc"
- system "mv tmpdoc doc"
- system "cd doc && git commit -am 'regenerate rdocs' && git push origin gh-pages && git push github gh-pages"
- system "git commit doc -m 'update docs submodule'"
-end
+
+ #doc
+ Rake::Task['rdoc'].invoke
+
+ #switch branch
+ system "git checkout gh-pages"
+
+ #move it all to the root
+ system "cp -r doc/* . && rm -rf doc"
+
+ #commit and push
+ system "git commit -am 'regenerate rdocs' && git push origin gh-pages && git push github gh-pages"
+ system "git checkout master"
+end
1 doc
Submodule doc deleted from 172749

0 comments on commit 5c46be8

Please sign in to comment.