diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-09-09 12:04:25 +0200 |
---|---|---|
committer | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-09-09 12:04:25 +0200 |
commit | b1a767b57cd0e6df32de70bc6c4ed296468c0245 (patch) | |
tree | 347c79bb712fda9df1caacb33b02d66e383faa77 /railties/Rakefile | |
parent | 88727f7ca679a59e5ffba984f3b1bf3056ae2bd6 (diff) | |
download | rails-b1a767b57cd0e6df32de70bc6c4ed296468c0245.tar.gz rails-b1a767b57cd0e6df32de70bc6c4ed296468c0245.tar.bz2 rails-b1a767b57cd0e6df32de70bc6c4ed296468c0245.zip |
Layout enhancements for the guides.
- Make all guides link to index.html.
- Do not display the table of contents in index.html.
These changes require the latest version of Mizuho (2b7570b).
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 |