From df398bd145f43dc953d751c4f722924930ec1c0f Mon Sep 17 00:00:00 2001 From: Gergely Gombos Date: Sun, 1 Dec 2024 20:51:49 +0100 Subject: [PATCH] add categories --- lib/docs/filters/react/entries_react_dev.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/react/entries_react_dev.rb b/lib/docs/filters/react/entries_react_dev.rb index 2264985b..0c49a6d8 100644 --- a/lib/docs/filters/react/entries_react_dev.rb +++ b/lib/docs/filters/react/entries_react_dev.rb @@ -4,11 +4,12 @@ module Docs def get_name canary_copy = '- This feature is available in the latest Canary' name = at_css('article h1').content - return name.sub(canary_copy, ' (experimental)') + return name.sub(canary_copy, ' (Experimental)') end def get_type - return 'TODO add types' + breadcrumb_nodes = css('a.tracking-wide') + return breadcrumb_nodes.last.content || 'Miscellaneous' end end end