Selaa lähdekoodia

Improve HTML scraper

Thibaut 10 vuotta sitten
vanhempi
commit
0812ee0be0
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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