Browse Source

Improve HTML scraper

Thibaut 10 năm trước cách đây
mục cha
commit
0812ee0be0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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