mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Added optional rake doc:app TITLE environment parameter
[#939 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
16b9a554db
commit
efa6620a2a
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
namespace :doc do
|
||||
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb"
|
||||
desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb or title with TITLE=\"Custom Title\""
|
||||
Rake::RDocTask.new("app") { |rdoc|
|
||||
rdoc.rdoc_dir = 'doc/app'
|
||||
rdoc.template = ENV['template'] if ENV['template']
|
||||
rdoc.title = "Rails Application Documentation"
|
||||
rdoc.title = ENV['title'] || "Rails Application Documentation"
|
||||
rdoc.options << '--line-numbers' << '--inline-source'
|
||||
rdoc.options << '--charset' << 'utf-8'
|
||||
rdoc.rdoc_files.include('doc/README_FOR_APP')
|
||||
|
|
Loading…
Reference in a new issue