diff options
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 08a5d1797f..fc73f72bdc 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -297,11 +297,15 @@ guides.each do |entry| output = "doc/guides/#{guide_folder}/#{guide_name}.html" guides_html_files << output file output => Dir["doc/guides/#{guide_folder}/*.txt"] do + ENV['MANUALSONRAILS_INDEX_URL'] = '../index.html' + ENV.delete('MANUALSONRAILS_TOC') sh "mizuho", input, "--template", "manualsonrails", "--icons-dir", "../icons" end end file '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" end |