diff options
-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 |