public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Added optional rake doc:app TITLE environment parameter

[#939 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
nbibler (author)
Fri Aug 29 20:36:16 -0700 2008
jeremy (committer)
Fri Aug 29 21:04:04 -0700 2008
commit  efa6620a2a7b8ae7b42664ab81faef7df1368939
tree    a84e204bd322791b92ea69af629e2ce953406aec
parent  16b9a554db7e1bf3f5f224cdc5b4d27480e053ff
...
1
2
 
3
4
5
6
 
7
8
9
...
1
 
2
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
 namespace :doc do
0
-  desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb"
0
+  desc "Generate documentation for the application. Set custom template with TEMPLATE=/path/to/rdoc/template.rb or title with TITLE=\"Custom Title\""
0
   Rake::RDocTask.new("app") { |rdoc|
0
     rdoc.rdoc_dir = 'doc/app'
0
     rdoc.template = ENV['template'] if ENV['template']
0
-    rdoc.title    = "Rails Application Documentation"
0
+    rdoc.title    = ENV['title'] || "Rails Application Documentation"
0
     rdoc.options << '--line-numbers' << '--inline-source'
0
     rdoc.options << '--charset' << 'utf-8'
0
     rdoc.rdoc_files.include('doc/README_FOR_APP')

Comments