mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Go documentation (1.10.1)
This commit is contained in:
parent
f08ae6131e
commit
11f685ff79
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
© Google, Inc.<br>
|
© Google, Inc.<br>
|
||||||
Licensed under the Creative Commons Attribution License 3.0.
|
Licensed under the Creative Commons Attribution License 3.0.
|
||||||
|
|
Loading…
Reference in a new issue