History

remove additional entries

Gergely Gombos committed 1 year ago

Commit e67408b1 parent d8eb5681 file · +0 −13Browse files

Unified · Split

lib/docs/filters/react/entries_react_dev.rb+0−13
@@ -27,19 +27,6 @@ module Docs · 26 unmodified lines
2727
2828 string.sub(canary_copy, ' (Canary)')
2929 end
30−
31− def additional_entries
32− excluded = %w(usage troubleshooting recap reference challenges alternatives)
33− entries = []
34− css('article h2, article h3').map do |node|
35− next unless node.has_attribute?('id')
36− name = node.content.strip
37− next if excluded.include?(name.downcase)
38− entries << [name, node['id'], type]
39− end
40−
41− entries
42− end
4330 end
4431 end
4532 end