浏览代码

Update Go documentation (1.5.2)

Thibaut 10 年之前
父节点
当前提交
5eb46b7359
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      lib/docs/filters/go/clean_html.rb
  2. 1 1
      lib/docs/scrapers/go.rb

+ 4 - 0
lib/docs/filters/go/clean_html.rb

@@ -39,6 +39,10 @@ module Docs
           node.name = 'pre'
           node.name = 'pre'
         end
         end
 
 
+        css('td[style]').each do |node|
+          node.remove_attribute('style')
+        end
+
         doc
         doc
       end
       end
     end
     end

+ 1 - 1
lib/docs/scrapers/go.rb

@@ -1,7 +1,7 @@
 module Docs
 module Docs
   class Go < UrlScraper
   class Go < UrlScraper
     self.type = 'go'
     self.type = 'go'
-    self.version = '1.5.0'
+    self.version = '1.5.2'
     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/',