Skip to content

Commit 97343ca

Browse files
committed
Update Go documentation (1.6.0)
1 parent 5391e30 commit 97343ca

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

assets/javascripts/views/pages/go.coffee

Lines changed: 0 additions & 6 deletions
This file was deleted.

assets/javascripts/views/pages/simple.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class app.views.SimplePage extends app.views.BasePage
66
@highlightCode el, el.getAttribute('data-language')
77
return
88

9+
app.views.GoPage =
910
app.views.MeteorPage =
1011
app.views.RamdaPage =
1112
app.views.ReactPage =

lib/docs/filters/go/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def call
3030

3131
# Remove code highlighting
3232
css('pre').each do |node|
33+
node['data-language'] = 'go'
3334
node.content = node.content
3435
end
3536

lib/docs/scrapers/go.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
22
class Go < UrlScraper
33
self.type = 'go'
4-
self.release = '1.5.2'
4+
self.release = '1.6.0'
55
self.base_url = 'https://golang.org/pkg/'
66
self.links = {
77
home: 'https://golang.org/',
@@ -10,6 +10,7 @@ class Go < UrlScraper
1010

1111
html_filters.push 'go/clean_html', 'go/entries'
1212

13+
options[:trailing_slash] = true
1314
options[:container] = '#page .container'
1415

1516
options[:attribution] = <<-HTML

0 commit comments

Comments
 (0)