History

add categories

Gergely Gombos committed 1 year ago

Commit df398bd1 parent ef1cc8a1 file · +3 −2Browse files

Unified · Split

lib/docs/filters/react/entries_react_dev.rb+3−2
@@ -4,11 +4,12 @@ module Docs · 3 unmodified lines
44 def get_name
55 canary_copy = '- This feature is available in the latest Canary'
66 name = at_css('article h1').content
7− return name.sub(canary_copy, ' (experimental)')
7+ return name.sub(canary_copy, ' (Experimental)')
88 end
99
1010 def get_type
11− return 'TODO add types'
11+ breadcrumb_nodes = css('a.tracking-wide')
12+ return breadcrumb_nodes.last.content || 'Miscellaneous'
1213 end
1314 end
1415 end