aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/Rakefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index ec2fe850e6..39c0ec89e7 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -306,15 +306,18 @@ guides.each do |entry|
end
end
-task 'doc/guides/index.html' => 'doc/guides/index.txt' do
- ENV.delete('MANUALSONRAILS_INDEX_URL')
- ENV['MANUALSONRAILS_TOC'] = 'no'
- sh "mizuho", 'doc/guides/index.txt', "--template", "manualsonrails", "--icons-dir", "icons"
+['index', 'authors'].each do |guide|
+ task "doc/guides/#{guide}.html" => "doc/guides/#{guide}.txt" do
+ ENV.delete('MANUALSONRAILS_INDEX_URL')
+ ENV['MANUALSONRAILS_TOC'] = 'no'
+ sh "mizuho", "doc/guides/#{guide}.txt", "--template", "manualsonrails", "--icons-dir", "icons"
+ end
end
desc "Generate HTML output for the guides"
task :generate_guides => guides_html_files
task :generate_guides => 'doc/guides/index.html'
+task :generate_guides => 'doc/guides/authors.html'
# Generate GEM ----------------------------------------------------------------------------