diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/tasks/documentation.rake | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 2f978cb1f4..08c17f58f1 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added TEMPLATE option to rake doc:app to set a custom output template #7737 [Jakob S] + * Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette] * Fixed that rake doc:app should use UTF-8 #8906 [farzy] diff --git a/railties/lib/tasks/documentation.rake b/railties/lib/tasks/documentation.rake index dd6254582e..fc7bd18a7b 100644 --- a/railties/lib/tasks/documentation.rake +++ b/railties/lib/tasks/documentation.rake @@ -1,7 +1,8 @@ namespace :doc do - desc "Generate documentation for the application" + desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb" Rake::RDocTask.new("app") { |rdoc| rdoc.rdoc_dir = 'doc/app' + rdoc.template = ENV['template'] if ENV['template'] rdoc.title = "Rails Application Documentation" rdoc.options << '--line-numbers' << '--inline-source' rdoc.options << '--charset' << 'utf-8' |