From 40477ece850a658ade267420ee78dce4d9ff3919 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 8 Aug 2019 15:22:12 +0200 Subject: [PATCH 1/2] go: move `id`s to kept elements --- lib/docs/filters/go/clean_html.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/docs/filters/go/clean_html.rb b/lib/docs/filters/go/clean_html.rb index 9acc91c7..a286c66b 100644 --- a/lib/docs/filters/go/clean_html.rb +++ b/lib/docs/filters/go/clean_html.rb @@ -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 From bdc8c9a08dd1e7bf1dad2e724e712a40030a898f Mon Sep 17 00:00:00 2001 From: Jasper van Merle Date: Thu, 8 Aug 2019 22:38:08 +0200 Subject: [PATCH 2/2] go: update version --- lib/docs/scrapers/go.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/go.rb b/lib/docs/scrapers/go.rb index 27b46652..725df2a4 100644 --- a/lib/docs/scrapers/go.rb +++ b/lib/docs/scrapers/go.rb @@ -1,7 +1,7 @@ module Docs class Go < UrlScraper self.type = 'go' - self.release = '1.11.2' + self.release = '1.12' self.base_url = 'https://golang.org/pkg/' self.links = { home: 'https://golang.org/',