Răsfoiți Sursa

Improve HTML scraper

Thibaut 10 ani în urmă
părinte
comite
0812ee0be0
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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