From e67408b63ef6ebf32c6e271c616567300a3e49bd Mon Sep 17 00:00:00 2001 From: Gergely Gombos Date: Wed, 11 Dec 2024 00:55:37 +0100 Subject: [PATCH] remove additional entries --- lib/docs/filters/react/entries_react_dev.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/docs/filters/react/entries_react_dev.rb b/lib/docs/filters/react/entries_react_dev.rb index 39edd7c9..ce6da0e0 100644 --- a/lib/docs/filters/react/entries_react_dev.rb +++ b/lib/docs/filters/react/entries_react_dev.rb @@ -27,19 +27,6 @@ module Docs string.sub(canary_copy, ' (Canary)') end - - def additional_entries - excluded = %w(usage troubleshooting recap reference challenges alternatives) - entries = [] - css('article h2, article h3').map do |node| - next unless node.has_attribute?('id') - name = node.content.strip - next if excluded.include?(name.downcase) - entries << [name, node['id'], type] - end - - entries - end end end end