diff --git a/lib/docs/filters/go/clean_html.rb b/lib/docs/filters/go/clean_html.rb index 05479dd3..e36149fa 100644 --- a/lib/docs/filters/go/clean_html.rb +++ b/lib/docs/filters/go/clean_html.rb @@ -14,12 +14,16 @@ module Docs end end - css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink').remove + css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove + + css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node| + node.before(node.children).remove + end # Remove triangle character css('h2', '.exampleHeading').each do |node| node.content = node.content.remove("\u25BE") - node.name = 'h2' + node.name = 'h4' unless node.name == 'h2' end # Turn