Rakefile in platform-api-0.0.9 vs Rakefile in platform-api-0.1.0
- old
+ new
@@ -1,5 +1,18 @@
require 'bundler/gem_tasks'
require 'yard'
-desc 'Doc the things'
+desc 'Generate API documentation'
YARD::Rake::YardocTask.new
+
+desc 'Publish API documentation'
+task :publish do
+ sh 'rake yard'
+ sh 'cp -R doc /tmp/platform-api-doc'
+ sh 'git checkout gh-pages'
+ sh 'cp -R /tmp/platform-api-doc/* .'
+ sh 'rm -rf /tmp/platform-api-doc'
+ sh 'git add .'
+ sh 'git commit -am "Rebuild documentation"'
+ sh 'git push origin gh-pages'
+ sh 'git checkout master'
+end