mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
go: move id
s to kept elements
This commit is contained in:
parent
eada92ec98
commit
40477ece85
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue