Unified · Split
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | ._rdoc { |
| 2 | 2 | > .description, > .documentation-section { padding-left: 1rem; } |
| 3 | − > .description > h2, header > h3 { @extend %block-heading; } | |
| 3 | + > .description > h2, header > h3, > h2 { @extend %block-heading; } | |
| 4 | 4 | > .description > h2, header > h3, .method-heading { margin-left: -1rem; } |
| 5 | 5 | .description > h1 { font-size: 1rem; } |
| 6 | 6 | .method-description > h2, h3, h4, h5, h6 { font-size: 1em; } |
| @@ -19,7 +19,9 @@ module Docs · 18 unmodified lines | ||
| 19 | 19 | meta << %(<dt>Included modules:</dt><dd class="meta-includes">#{includes.css('a').map(&:to_html).join(', ')}</dd>) |
| 20 | 20 | end |
| 21 | 21 | |
| 22 | − container.at_css('h1').after(meta) | |
| 22 | + if parent || includes | |
| 23 | + container.at_css('h1').after(meta) | |
| 24 | + end | |
| 23 | 25 | |
| 24 | 26 | container |
| 25 | 27 | end |
| @@ -2,7 +2,9 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Rdoc |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | − name = at_css('h1').content.strip | |
| 5 | + name = at_css('h1, h2').content.strip | |
| 6 | + name.remove! "\u{00B6}" # remove pilcrow sign | |
| 7 | + name.remove! "\u{2191}" # remove up arrow sign | |
| 6 | 8 | name.remove! 'class ' |
| 7 | 9 | name.remove! 'module ' |
| 8 | 10 | name |
| @@ -57,7 +57,7 @@ module Docs · 56 unmodified lines | ||
| 57 | 57 | ActiveSupport/Testing/Isolation/Subprocess.html |
| 58 | 58 | Rails/API/Task.html) |
| 59 | 59 | |
| 60 | − options[:skip_patterns] = [ | |
| 60 | + options[:skip_patterns] += [ | |
| 61 | 61 | /\AActionController\/Caching(?!\/Fragments|\.)/, |
| 62 | 62 | /\AActionController\/RequestForgeryProtection\/ProtectionMethods/, |
| 63 | 63 | /\AActionController\/Testing/, |
| @@ -5,9 +5,14 @@ module Docs · 4 unmodified lines | ||
| 5 | 5 | self.root_path = 'table_of_contents.html' |
| 6 | 6 | |
| 7 | 7 | html_filters.replace 'container', 'rdoc/container' |
| 8 | − html_filters.push 'rdoc/entries', 'rdoc/clean_html', 'title' | |
| 8 | + html_filters.push 'title', 'rdoc/entries', 'rdoc/clean_html' | |
| 9 | 9 | |
| 10 | 10 | options[:title] = false |
| 11 | 11 | options[:skip] = %w(index.html) |
| 12 | + options[:skip_patterns] = [ | |
| 13 | + /changelog/i, | |
| 14 | + /readme/i, | |
| 15 | + /news/i, | |
| 16 | + /license/i] | |
| 12 | 17 | end |
| 13 | 18 | end |