Skip to content

Commit 9f2d76f

Browse files
Copilothotlong
andcommitted
Fix component sidebar to show collapsible category folders
Restructured docs/components/meta.json to reference folder names directly, allowing fumadocs to create proper collapsible category navigation. Recreated subdirectory meta.json files with updated component lists. Components are now organized under expandable category folders in the sidebar: Basic, Form, Layout, Data Display, Feedback, Overlay, Disclosure, and Complex. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 20fcaf6 commit 9f2d76f

File tree

8 files changed

+47
-79
lines changed

8 files changed

+47
-79
lines changed

docs/components/basic/meta.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"icon",
66
"image",
77
"separator",
8-
"html"
8+
"html",
9+
"button-group",
10+
"pagination",
11+
"navigation-menu",
12+
"sidebar"
913
]
1014
}

docs/components/data-display/meta.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"badge",
55
"avatar",
66
"alert",
7-
"list"
7+
"list",
8+
"breadcrumb",
9+
"calendar",
10+
"carousel",
11+
"kbd",
12+
"timeline"
813
]
914
}

docs/components/disclosure/meta.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"title": "Disclosure",
33
"pages": [
44
"accordion",
5-
"collapsible"
5+
"collapsible",
6+
"toggle",
7+
"toggle-group"
68
]
79
}

docs/components/feedback/meta.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"pages": [
44
"loading",
55
"progress",
6-
"skeleton"
6+
"skeleton",
7+
"spinner",
8+
"empty",
9+
"toast",
10+
"sonner"
711
]
812
}

docs/components/form/meta.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
"pages": [
44
"button",
55
"input",
6+
"textarea",
67
"select",
8+
"combobox",
79
"checkbox",
10+
"radio-group",
811
"switch",
9-
"textarea",
10-
"slider"
12+
"slider",
13+
"label",
14+
"date-picker",
15+
"input-otp",
16+
"command",
17+
"form"
1118
]
1219
}

docs/components/layout/meta.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"grid",
77
"flex",
88
"stack",
9-
"tabs"
9+
"tabs",
10+
"aspect-ratio",
11+
"scroll-area",
12+
"resizable"
1013
]
1114
}

docs/components/meta.json

Lines changed: 8 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,13 @@
22
"title": "Components",
33
"pages": [
44
"index",
5-
"---Basic",
6-
"basic/text",
7-
"basic/icon",
8-
"basic/image",
9-
"basic/separator",
10-
"basic/html",
11-
"basic/button-group",
12-
"basic/pagination",
13-
"basic/navigation-menu",
14-
"basic/sidebar",
15-
"---Form",
16-
"form/button",
17-
"form/input",
18-
"form/textarea",
19-
"form/select",
20-
"form/combobox",
21-
"form/checkbox",
22-
"form/radio-group",
23-
"form/switch",
24-
"form/slider",
25-
"form/label",
26-
"form/date-picker",
27-
"form/input-otp",
28-
"form/command",
29-
"form/form",
30-
"---Layout",
31-
"layout/container",
32-
"layout/card",
33-
"layout/grid",
34-
"layout/flex",
35-
"layout/stack",
36-
"layout/tabs",
37-
"layout/aspect-ratio",
38-
"layout/scroll-area",
39-
"layout/resizable",
40-
"---Data Display",
41-
"data-display/badge",
42-
"data-display/avatar",
43-
"data-display/alert",
44-
"data-display/list",
45-
"data-display/breadcrumb",
46-
"data-display/calendar",
47-
"data-display/carousel",
48-
"data-display/kbd",
49-
"data-display/timeline",
50-
"---Feedback",
51-
"feedback/loading",
52-
"feedback/progress",
53-
"feedback/skeleton",
54-
"feedback/spinner",
55-
"feedback/empty",
56-
"feedback/toast",
57-
"feedback/sonner",
58-
"---Overlay",
59-
"overlay/dialog",
60-
"overlay/drawer",
61-
"overlay/tooltip",
62-
"overlay/popover",
63-
"overlay/alert-dialog",
64-
"overlay/sheet",
65-
"overlay/hover-card",
66-
"overlay/context-menu",
67-
"overlay/dropdown-menu",
68-
"overlay/menubar",
69-
"---Disclosure",
70-
"disclosure/accordion",
71-
"disclosure/collapsible",
72-
"disclosure/toggle",
73-
"disclosure/toggle-group",
74-
"---Complex",
75-
"complex/table"
5+
"basic",
6+
"form",
7+
"layout",
8+
"data-display",
9+
"feedback",
10+
"overlay",
11+
"disclosure",
12+
"complex"
7613
]
7714
}

docs/components/overlay/meta.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"dialog",
55
"drawer",
66
"tooltip",
7-
"popover"
7+
"popover",
8+
"alert-dialog",
9+
"sheet",
10+
"hover-card",
11+
"context-menu",
12+
"dropdown-menu",
13+
"menubar"
814
]
915
}

0 commit comments

Comments
 (0)