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