diff options
author | Xavier Noria <fxn@hashref.com> | 2009-02-17 23:14:58 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-02-17 23:14:58 +0100 |
commit | 190984567eef0625d25f450d73af9e7cc5d9cd0c (patch) | |
tree | 7678f01743706af84e857f2940728f135142ca84 | |
parent | fefbddbfdb792d844cf360d6926972ae6c5913af (diff) | |
download | rails-190984567eef0625d25f450d73af9e7cc5d9cd0c.tar.gz rails-190984567eef0625d25f450d73af9e7cc5d9cd0c.tar.bz2 rails-190984567eef0625d25f450d73af9e7cc5d9cd0c.zip |
textilize titles in ToC of guides
-rw-r--r-- | railties/guides/files/stylesheets/main.css | 3 | ||||
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 4 |
2 files changed, 5 insertions, 2 deletions
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 |