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