From 25db44b2564e19c2085ad1db374cfd797345f517 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 14 Sep 2008 13:48:34 +0100 Subject: Generate authors file --- railties/Rakefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'railties') 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 ---------------------------------------------------------------------------- -- cgit v1.2.3