go: move ids to kept elements

This commit is contained in:
Simon Legner 2019-08-08 15:22:12 +02:00
parent eada92ec98
commit 40477ece85

View file

@ -17,6 +17,7 @@ module Docs
css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove
css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node|
node.first_element_child['id'] = node['id'] if node['id']
node.before(node.children).remove
end