Skip to content

Commit

Permalink
generate gh-pages task
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 18, 2016
1 parent 9da4424 commit 111f295
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@ RDoc::Task.new do |doc|
doc.rdoc_dir = 'html'
end

task :ghpages => :rdoc do
`git checkout gh-pages`
require 'fileutils'
FileUtils.rm_rf '/tmp/html'
FileUtils.mv 'html', '/tmp'
FileUtils.rm_rf '*'
FileUtils.cp_r Dir.glob('/tmp/html/*'), '.'
end

task :default => :test

0 comments on commit 111f295

Please sign in to comment.