diff --git a/railties/guides/files/stylesheets/main.css b/railties/guides/files/stylesheets/main.css index e7d184a4e5..3b314946af 100644 --- a/railties/guides/files/stylesheets/main.css +++ b/railties/guides/files/stylesheets/main.css @@ -483,6 +483,9 @@ h6 { font-size: 1em; font-weight: normal; } +#subCol .chapters p { + font-size: 1em; +} tt { font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace; diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index 3cbc2eb1f4..28aab4bada 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -82,11 +82,11 @@ module RailsGuides # Set index for 2 levels i.level_hash.each do |key, value| bookmark = '#' + key.gsub(/[^a-z0-9\-_\+]+/i, '').underscore.dasherize - link = view.content_tag(:a, :href => bookmark) { key } + link = view.content_tag(:a, :href => bookmark) { textile(key) } children = value.keys.map do |k| bm = '#' + k.gsub(/[^a-z0-9\-_\+]+/i, '').underscore.dasherize - l = view.content_tag(:a, :href => bm) { k } + l = view.content_tag(:a, :href => bm) { textile(k) } view.content_tag(:li, l) end