diff --git a/assets/stylesheets/pages/_rdoc.scss b/assets/stylesheets/pages/_rdoc.scss index 8f9ebde4..feac3447 100644 --- a/assets/stylesheets/pages/_rdoc.scss +++ b/assets/stylesheets/pages/_rdoc.scss @@ -1,7 +1,7 @@ ._rdoc { > .description, > .documentation-section { padding-left: 1rem; } - > .description > h2, .section-header { @extend %block-heading; } - > .description > h2, .section-header, .method-heading { margin-left: -1rem; } + > .description > h2, header > h3 { @extend %block-heading; } + > .description > h2, header > h3, .method-heading { margin-left: -1rem; } .description > h1 { font-size: 1rem; } .method-description > h2, h3, h4, h5, h6 { font-size: 1em; } diff --git a/lib/docs/filters/rdoc/clean_html.rb b/lib/docs/filters/rdoc/clean_html.rb index f5d15f64..eaf32927 100644 --- a/lib/docs/filters/rdoc/clean_html.rb +++ b/lib/docs/filters/rdoc/clean_html.rb @@ -7,7 +7,7 @@ module Docs end def root - at_css('.section-header').remove + at_css('h3').remove # Remove skipped items css('li > span').each do |node| diff --git a/lib/docs/filters/rdoc/container.rb b/lib/docs/filters/rdoc/container.rb index 770ffdde..7a126de8 100644 --- a/lib/docs/filters/rdoc/container.rb +++ b/lib/docs/filters/rdoc/container.rb @@ -5,17 +5,20 @@ module Docs if root_page? at_css '#classindex-section' else - container = at_css '#documentation' + container = at_css 'main' # Add