Skip to content

Commit

Permalink
Define target to build documentation using RDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lbaehren committed Apr 18, 2012
1 parent 4a6e8a1 commit 410dbdb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ end

## === Generation of documentation ==============================================

desc "Generate documentation"
task :doc do
sh "yard -r README documentation"
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "documentation/*.rdoc")
rd.rdoc_dir = "build/documentation/html"
end

## === Default target ===========================================================

task :default => ['project']
task :default => ['project']

0 comments on commit 410dbdb

Please sign in to comment.