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 @@
1module Docs1module Docs
2 class Go < UrlScraper2 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] = <<-HTML22 options[:attribution] = <<-HTML
19 &copy; Google, Inc.<br>23 &copy; Google, Inc.<br>
20 Licensed under the Creative Commons Attribution License 3.0.24 Licensed under the Creative Commons Attribution License 3.0.