avatar

12

Adjust rdoc generation options to use charset=utf8, and respect the TEMPLATE environment variable if it's set (like rails does)

by chrisk, 25 Jul, 2007 10:32 PM
3 12  
1616 Rake::RDocTask.new(:rdoc) do |rdoc|
1717   rdoc.rdoc_dir = 'doc'
1818   rdoc.title    = 'Templated Attribute plugin documentation'
19   rdoc.options << '--line-numbers' << '--inline-source' <<
20                   '-W http://browse.shiftcommathree.com/browser/rails_plugins/templated_attribute/'
19   rdoc.options << '--line-numbers' << '--inline-source'
20   rdoc.options << '-W http://browse.shiftcommathree.com/browser/rails_plugins/templated_attribute/'
21   rdoc.options << '--charset' << 'utf-8'
22   rdoc.template = "#{ENV['template']}.rb" if ENV['template']
2123   rdoc.rdoc_files.include('README')
2224   rdoc.rdoc_files.include('CHANGELOG')
2325   rdoc.rdoc_files.include('MIT-LICENSE')