Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 59c36fd4567cea821953c8b3ec73264d50e0a4ad 1 parent da5d8fa
@dhh dhh authored
Showing with 4 additions and 1 deletion.
  1. +2 −0  railties/CHANGELOG
  2. +2 −1  railties/lib/tasks/documentation.rake
View
2  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]
View
3  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'
Please sign in to comment.
Something went wrong with that request. Please try again.