Update Go documentation (1.6.0)

pull/384/head
Thibaut Courouble 9 years ago
parent 5391e30939
commit 97343ca33d

@ -1,6 +0,0 @@
#= require views/pages/base
class app.views.GoPage extends app.views.BasePage
prepare: ->
@highlightCode @findAll('pre'), 'go'
return

@ -6,6 +6,7 @@ class app.views.SimplePage extends app.views.BasePage
@highlightCode el, el.getAttribute('data-language') @highlightCode el, el.getAttribute('data-language')
return return
app.views.GoPage =
app.views.MeteorPage = app.views.MeteorPage =
app.views.RamdaPage = app.views.RamdaPage =
app.views.ReactPage = app.views.ReactPage =

@ -30,6 +30,7 @@ module Docs
# Remove code highlighting # Remove code highlighting
css('pre').each do |node| css('pre').each do |node|
node['data-language'] = 'go'
node.content = node.content node.content = node.content
end end

@ -1,7 +1,7 @@
module Docs module Docs
class Go < UrlScraper class Go < UrlScraper
self.type = 'go' self.type = 'go'
self.release = '1.5.2' self.release = '1.6.0'
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/',
@ -10,6 +10,7 @@ module Docs
html_filters.push 'go/clean_html', 'go/entries' html_filters.push 'go/clean_html', 'go/entries'
options[:trailing_slash] = true
options[:container] = '#page .container' options[:container] = '#page .container'
options[:attribution] = <<-HTML options[:attribution] = <<-HTML

Loading…
Cancel
Save