mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
@@ -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]
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user