Adjust rdoc generation options to use charset=utf8, and respect the TEMPLATE environment variable if it's set (like rails does)
| 3 | 12 | |
|---|---|---|
| 16 | 16 | Rake::RDocTask.new(:rdoc) do |rdoc| |
| 17 | 17 | rdoc.rdoc_dir = 'doc' |
| 18 | 18 | 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'] | |
| 21 | 23 | rdoc.rdoc_files.include('README') |
| 22 | 24 | rdoc.rdoc_files.include('CHANGELOG') |
| 23 | 25 | rdoc.rdoc_files.include('MIT-LICENSE') |
