Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add HTML generation task for the routing guide.

  • Loading branch information...
commit c9cfa4fc6ce37c21b3784cbe21daf702ac61c07f 1 parent 393410b
@FooBarWidget FooBarWidget authored
Showing with 17 additions and 5 deletions.
  1. +17 −5 railties/Rakefile
View
22 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
Please sign in to comment.
Something went wrong with that request. Please try again.