History

Update Go documentation (1.10.1)

Thibaut Courouble committed 8 years ago

Commit 11f685f1 parent f08ae611 file · +5 −1Browse files

Unified · Split

lib/docs/scrapers/go.rb+5−1
@@ -1,7 +1,7 @@
11 module Docs
22 class Go < UrlScraper
33 self.type = 'go'
4− self.release = '1.10.0'
4+ self.release = '1.10.1'
55 self.base_url = 'https://golang.org/pkg/'
66 self.links = {
77 home: 'https://golang.org/',
@@ -15,6 +15,10 @@ module Docs · 7 unmodified lines
1515 options[:skip] = %w(runtime/msan/)
1616 options[:skip_patterns] = [/\/\//]
1717
18+ options[:fix_urls] = ->(url) do
19+ url.sub 'https://golang.org/pkg//', 'https://golang.org/pkg/'
20+ end
21+
1822 options[:attribution] = <<-HTML
1923 &copy; Google, Inc.<br>
2024 Licensed under the Creative Commons Attribution License 3.0.