浏览代码

Improve HTML scraper

Thibaut 10 年之前
父节点
当前提交
0812ee0be0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/docs/filters/html/entries.rb

+ 2 - 1
lib/docs/filters/html/entries.rb

@@ -27,7 +27,8 @@ module Docs
       end
 
       def include_default_entry?
-        !%w(Attributes Link_types Element/Heading_Elements).include?(slug)
+        return false if %w(Attributes Link_types Element/Heading_Elements).include?(slug)
+        (node = doc.at_css '.overheadIndicator').nil? || node.content.exclude?('not on a standards track')
       end
 
       def additional_entries