Merge pull request #1044 from simon04/go-id

go: move `id`s to kept elements
pull/982/head
Jasper van Merle 6 years ago
commit eaa32ca575

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

@ -1,7 +1,7 @@
module Docs module Docs
class Go < UrlScraper class Go < UrlScraper
self.type = 'go' self.type = 'go'
self.release = '1.11.2' self.release = '1.12'
self.base_url = 'https://golang.org/pkg/' self.base_url = 'https://golang.org/pkg/'
self.links = { self.links = {
home: 'https://golang.org/', home: 'https://golang.org/',

Loading…
Cancel
Save