We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd18f6 commit 70c5489Copy full SHA for 70c5489
lib/docs/filters/react/entries_react_dev.rb
@@ -24,6 +24,18 @@ def update_canary_copy(string)
24
canary_copy = '- This feature is available in the latest Canary'
25
return string.sub(canary_copy, ' (Canary)')
26
end
27
+
28
+ def additional_entries
29
+ excluded = %w(usage troubleshooting recap reference challenges alternatives)
30
+ entries = []
31
+ css('article h2, article h3').map do |node|
32
+ next unless node.has_attribute?('id')
33
+ name = node.content.strip
34
+ next if excluded.include?(name.downcase)
35
+ entries << [name, node['id'], type]
36
+ end
37
+ return entries
38
39
40
41
0 commit comments