1 require 'rake/rdoctask'
4 desc 'Generate RDoc documentation'
5 Rake::RDocTask.new do |rdoc|
7 rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation"
8 rdoc.options << '--line-numbers' << '--inline-source' <<
9 '--accessor' << 'cattr_accessor=object' << '--charset' << 'utf-8'
10 rdoc.template = "#{ENV['template']}.rb" if ENV['template']
11 rdoc.rdoc_files.include('README', 'CHANGELOG', 'LICENSE')
12 rdoc.rdoc_files.include('lib/**/*.rb')
15 desc 'Generate ri locally for testing'
17 sh 'rdoc --ri -o ri .'
20 desc 'Remove ri products'
26 task 'clobber' => ['doc:clobber_rdoc', 'doc:clobber_ri']