Skip to content

Commit df398bd

Browse files
committed
add categories
1 parent ef1cc8a commit df398bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/docs/filters/react/entries_react_dev.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ class EntriesReactDevFilter < Docs::EntriesFilter
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

0 commit comments

Comments
 (0)