/ Published in: Ruby

URL: http://rake.rubyforge.org/classes/Rake/RDocTask.html
For the --diagram
and --fileboxes
options to work you need GraphViz otherwise, delete those.
Expand |
Embed | Plain Text
require 'rake/rdoctask' desc 'generate API documentation to doc/rdocs/index.html' Rake::RDocTask.new do |rd| rd.rdoc_dir = 'doc/rdocs' rd.main = 'README.txt' rd.rdoc_files.include 'README.txt', 'CHANGELOG.txt', "config/**/*\.rb", "helpers/**/*\.rb", "script/**/*\.rb" rd.options << '--inline-source' rd.options << '--line-numbers' rd.options << '--all' rd.options << '--fileboxes' rd.options << '--diagram' end
You need to login to post a comment.