Skip to content
This repository
Browse code

textilize titles in ToC of guides

  • Loading branch information...
commit 190984567eef0625d25f450d73af9e7cc5d9cd0c 1 parent fefbddb
Xavier Noria fxn authored
3  railties/guides/files/stylesheets/main.css
@@ -483,6 +483,9 @@ h6 {
483 483 font-size: 1em;
484 484 font-weight: normal;
485 485 }
  486 +#subCol .chapters p {
  487 + font-size: 1em;
  488 +}
486 489
487 490 tt {
488 491 font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace;
4 railties/guides/rails_guides/generator.rb
@@ -82,11 +82,11 @@ def set_index(body, view)
82 82 # Set index for 2 levels
83 83 i.level_hash.each do |key, value|
84 84 bookmark = '#' + key.gsub(/[^a-z0-9\-_\+]+/i, '').underscore.dasherize
85   - link = view.content_tag(:a, :href => bookmark) { key }
  85 + link = view.content_tag(:a, :href => bookmark) { textile(key) }
86 86
87 87 children = value.keys.map do |k|
88 88 bm = '#' + k.gsub(/[^a-z0-9\-_\+]+/i, '').underscore.dasherize
89   - l = view.content_tag(:a, :href => bm) { k }
  89 + l = view.content_tag(:a, :href => bm) { textile(k) }
90 90 view.content_tag(:li, l)
91 91 end
92 92

0 comments on commit 1909845

Please sign in to comment.
Something went wrong with that request. Please try again.