Permalink
Browse files

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).
  • Loading branch information...
FooBarWidget committed Sep 9, 2008
1 parent 88727f7 commit b1a767b57cd0e6df32de70bc6c4ed296468c0245
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/Rakefile
View
@@ -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

0 comments on commit b1a767b

Please sign in to comment.