3 # We prefer to use the RDoc gem over the site version.
6 end unless defined?(RDoc)
11 CLOBBER.include('doc', 'ri')
15 desc 'Generate RDoc documentation'
16 RDoc::Task.new do |rdoc|
18 rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation"
19 rdoc.options << '--line-numbers' << 'cattr_accessor=object' <<
20 '--charset' << 'utf-8'
21 rdoc.template = "#{ENV['template']}.rb" if ENV['template']
22 rdoc.rdoc_files.include('README.md', 'CHANGELOG.md', 'LICENSE')
23 rdoc.rdoc_files.include('lib/**/*.rb')
26 desc 'Generate ri locally for testing'
28 sh 'rdoc --ri -o ri .'