Unified · Split
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | > .description > h2, .section-header { @extend %block-heading; } |
| 4 | 4 | > .description > h2, .section-header, .method-heading { margin-left: -1rem; } |
| 5 | 5 | .description > h1 { font-size: 1rem; } |
| 6 | − .method-description > h2, h3, h4 { font-size: 1em; } | |
| 6 | + .method-description > h2, h3, h4, h5, h6 { font-size: 1em; } | |
| 7 | 7 | |
| 8 | 8 | .method-heading { |
| 9 | 9 | font-weight: bold; |
| @@ -19,7 +19,7 @@ module Docs · 18 unmodified lines | ||
| 19 | 19 | css('hr').remove |
| 20 | 20 | |
| 21 | 21 | # Remove paragraph/up links |
| 22 | − css('h1 > span', 'h2 > span', 'h3 > span', 'h4 > span').remove | |
| 22 | + css('h1 > span', 'h2 > span', 'h3 > span', 'h4 > span', 'h5 > span', 'h6 > span').remove | |
| 23 | 23 | |
| 24 | 24 | # Move id attributes to headings |
| 25 | 25 | css('.method-detail').each do |node| |
| @@ -19,6 +19,10 @@ module Docs · 18 unmodified lines | ||
| 19 | 19 | type |
| 20 | 20 | end |
| 21 | 21 | |
| 22 | + def include_default_entry? | |
| 23 | + at_css('#description p') || css('.documentation-section').any? { |node| node.content.present? } | |
| 24 | + end | |
| 25 | + | |
| 22 | 26 | def additional_entries |
| 23 | 27 | return [] if root_page? |
| 24 | 28 | require 'cgi' |
| @@ -29,9 +33,12 @@ module Docs · 4 unmodified lines | ||
| 29 | 33 | name.sub! %r{\A-(?!\d)}, '' |
| 30 | 34 | name.gsub! '-', '%' |
| 31 | 35 | name = CGI.unescape(name) |
| 32 | − name.prepend self.name + (node['id'] =~ /\A\w+-c-/ ? '::' : '#') | |
| 33 | 36 | |
| 34 | − entries << [name, node['id']] unless entries.any? { |entry| entry[0] == name } | |
| 37 | + unless name.start_with? '_' | |
| 38 | + name.prepend self.name + (node['id'] =~ /\A\w+-c-/ ? '::' : '#') | |
| 39 | + entries << [name, node['id']] unless entries.any? { |entry| entry[0] == name } | |
| 40 | + end | |
| 41 | + | |
| 35 | 42 | entries |
| 36 | 43 | end |
| 37 | 44 | end |
| @@ -29,15 +29,12 @@ module Docs · 28 unmodified lines | ||
| 29 | 29 | |
| 30 | 30 | options[:skip] += %w( |
| 31 | 31 | fatal.html |
| 32 | − unknown.html | |
| 33 | 32 | CompositePublisher.html |
| 34 | 33 | Data.html |
| 35 | 34 | E2MM.html |
| 36 | 35 | English.html |
| 37 | 36 | Exception2MessageMapper.html |
| 38 | − EXCEPTION_TYPE.html | |
| 39 | 37 | GServer.html |
| 40 | − Logging.html | |
| 41 | 38 | MakeMakefile.html |
| 42 | 39 | ParallelEach.html |
| 43 | 40 | Requirement.html |