mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
textilize titles in ToC of guides
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user