瀏覽代碼

Update lodash documentation (4.15.0, 3.10.0)

Thibaut Courouble 9 年之前
父節點
當前提交
af3354a247
共有 2 個文件被更改,包括 2 次插入5 次删除
  1. 1 4
      lib/docs/filters/lodash/clean_html.rb
  2. 1 1
      lib/docs/scrapers/lodash.rb

+ 1 - 4
lib/docs/filters/lodash/clean_html.rb

@@ -6,10 +6,7 @@ module Docs
 
         css('h3 + p', 'hr').remove
 
-        # Set id attributes on <h3> instead of an empty <a>
-        css('h3').each do |node|
-          node['id'] = node.at_css('a')['id']
-        end
+        css('h2 a:contains("#")', 'h3 a:contains("#")').remove
 
         # Remove <code> inside headings
         css('h2', 'h3').each do |node|

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

@@ -19,7 +19,7 @@ module Docs
     HTML
 
     version '4' do
-      self.release = '4.14.1'
+      self.release = '4.15.0'
       self.base_url = 'https://lodash.com/docs'
     end