Added TEMPLATE option to rake doc:app to set a custom output template (closes #7737) [Jakob S]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2007-09-22 18:33:39 +00:00
parent da5d8fa6ad
commit 59c36fd456
2 changed files with 4 additions and 1 deletions

View File

@@ -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]

View File

@@ -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'