Unified · Split
| @@ -1,7 +1,7 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Go < UrlScraper | 2 | class Go < UrlScraper |
| 3 | self.type = 'go' | 3 | self.type = 'go' |
| 4 | self.release = '1.10.0' | 4 | self.release = '1.10.1' |
| 5 | self.base_url = 'https://golang.org/pkg/' | 5 | self.base_url = 'https://golang.org/pkg/' |
| 6 | self.links = { | 6 | self.links = { |
| 7 | home: 'https://golang.org/', | 7 | home: 'https://golang.org/', |
| @@ -15,6 +15,10 @@ module Docs · 7 unmodified lines | |||
| 15 | options[:skip] = %w(runtime/msan/) | 15 | options[:skip] = %w(runtime/msan/) |
| 16 | options[:skip_patterns] = [/\/\//] | 16 | options[:skip_patterns] = [/\/\//] |
| 17 | 17 | ||
| 18 | options[:fix_urls] = ->(url) do | ||
| 19 | url.sub 'https://golang.org/pkg//', 'https://golang.org/pkg/' | ||
| 20 | end | ||
| 21 | |||
| 18 | options[:attribution] = <<-HTML | 22 | options[:attribution] = <<-HTML |
| 19 | © Google, Inc.<br> | 23 | © Google, Inc.<br> |
| 20 | Licensed under the Creative Commons Attribution License 3.0. | 24 | Licensed under the Creative Commons Attribution License 3.0. |