Skip to content

Commit eaa32ca

Browse files
committed
Merge pull request #1044 from simon04/go-id
go: move `id`s to kept elements
2 parents b6384c0 + bdc8c9a commit eaa32ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/docs/filters/go/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def call
1717
css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove
1818

1919
css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node|
20+
node.first_element_child['id'] = node['id'] if node['id']
2021
node.before(node.children).remove
2122
end
2223

lib/docs/scrapers/go.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
22
class Go < UrlScraper
33
self.type = 'go'
4-
self.release = '1.11.2'
4+
self.release = '1.12'
55
self.base_url = 'https://golang.org/pkg/'
66
self.links = {
77
home: 'https://golang.org/',

0 commit comments

Comments
 (0)