Update Go documentation (1.10.1)

This commit is contained in:
Thibaut Courouble 2018-04-28 10:04:40 -04:00
parent f08ae6131e
commit 11f685ff79

View file

@ -1,7 +1,7 @@
module Docs module Docs
class Go < UrlScraper class Go < UrlScraper
self.type = 'go' self.type = 'go'
self.release = '1.10.0' self.release = '1.10.1'
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/',
@ -15,6 +15,10 @@ module Docs
options[:skip] = %w(runtime/msan/) options[:skip] = %w(runtime/msan/)
options[:skip_patterns] = [/\/\//] options[:skip_patterns] = [/\/\//]
options[:fix_urls] = ->(url) do
url.sub 'https://golang.org/pkg//', 'https://golang.org/pkg/'
end
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; Google, Inc.<br> &copy; Google, Inc.<br>
Licensed under the Creative Commons Attribution License 3.0. Licensed under the Creative Commons Attribution License 3.0.