diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 18:33:39 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 18:33:39 +0000 |
commit | 59c36fd4567cea821953c8b3ec73264d50e0a4ad (patch) | |
tree | 3f26f99c943849695b934752fd461ad057a783a6 /railties/lib | |
parent | da5d8fa6ad1b3ba6fcaaf81acbfff17b177f9964 (diff) | |
download | rails-59c36fd4567cea821953c8b3ec73264d50e0a4ad.tar.gz rails-59c36fd4567cea821953c8b3ec73264d50e0a4ad.tar.bz2 rails-59c36fd4567cea821953c8b3ec73264d50e0a4ad.zip |
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
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/documentation.rake | 3 |
1 files changed, 2 insertions, 1 deletions
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' |