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
27 27
28 string.sub(canary_copy, ' (Canary)')28 string.sub(canary_copy, ' (Canary)')
29 end29 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
43 end30 end
44 end31 end
45end32end