diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-09-05 16:49:27 +0200 |
---|---|---|
committer | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-09-05 16:49:27 +0200 |
commit | c9cfa4fc6ce37c21b3784cbe21daf702ac61c07f (patch) | |
tree | 6c85161d000b8ce70a3d4601b52a6116ffa22473 /railties/Rakefile | |
parent | 393410b97f3937bd46d324a01c78086bea0c9e98 (diff) | |
download | rails-c9cfa4fc6ce37c21b3784cbe21daf702ac61c07f.tar.gz rails-c9cfa4fc6ce37c21b3784cbe21daf702ac61c07f.tar.bz2 rails-c9cfa4fc6ce37c21b3784cbe21daf702ac61c07f.zip |
Add HTML generation task for the routing guide.
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 174c85b59a..a3d031020e 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -272,13 +272,25 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.include('lib/commands/**/*.rb') } -guides = ['securing_rails_applications', 'testing_rails_applications', 'creating_plugins'] +guides = [ + 'securing_rails_applications', + 'testing_rails_applications', + 'creating_plugins', + { 'routing' => 'routing_outside_in' } +] guides_html_files = [] -guides.each do |guide_name| - input = "doc/guides/#{guide_name}/#{guide_name}.txt" - output = "doc/guides/#{guide_name}/#{guide_name}.html" +guides.each do |entry| + if entry.is_a?(Hash) + guide_folder = entry.keys.first + guide_name = entry.values.first + else + guide_folder = entry + guide_name = entry + end + input = "doc/guides/#{guide_folder}/#{guide_name}.txt" + output = "doc/guides/#{guide_folder}/#{guide_name}.html" guides_html_files << output - file output => Dir["doc/guides/#{guide_name}/*.txt"] do + file output => Dir["doc/guides/#{guide_folder}/*.txt"] do sh "mizuho", input, "--template", "manualsonrails", "--multi-page", "--icons-dir", "../icons" end |