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
4 def get_name4 def get_name
5 canary_copy = '- This feature is available in the latest Canary'5 canary_copy = '- This feature is available in the latest Canary'
6 name = at_css('article h1').content6 name = at_css('article h1').content
7 return name.sub(canary_copy, ' (experimental)')7 return name.sub(canary_copy, ' (Experimental)')
8 end8 end
9 9
10 def get_type10 def get_type
11 return 'TODO add types'11 breadcrumb_nodes = css('a.tracking-wide')
12 return breadcrumb_nodes.last.content || 'Miscellaneous'
12 end13 end
13 end14 end
14 end15 end