Skip to content

Commit 002ec22

Browse files
Copilothuangyiirene
andcommitted
Fix documentation meta.json structure for Fumadocs compatibility
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 03668fa commit 002ec22

3 files changed

Lines changed: 79 additions & 141 deletions

File tree

docs/components/index.mdx

Lines changed: 23 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: "Component Gallery"
33
description: "Explore all ObjectUI components organized by category"
44
---
55

6-
import { Card, Cards } from 'fumadocs-ui/components/card';
7-
86
# Component Gallery
97

108
ObjectUI provides a comprehensive set of components built on React, Tailwind CSS, and Shadcn UI. All components are defined through JSON schemas and rendered with pixel-perfect quality.
@@ -13,48 +11,29 @@ ObjectUI provides a comprehensive set of components built on React, Tailwind CSS
1311

1412
Browse components by category to find what you need:
1513

16-
<Cards>
17-
<Card
18-
title="Basic Components"
19-
description="Essential building blocks: Text, Icon, Image, Separator, HTML"
20-
href="/components/basic"
21-
/>
22-
<Card
23-
title="Form Components"
24-
description="Interactive inputs: Button, Input, Select, Checkbox, Switch, Textarea, Slider"
25-
href="/components/form"
26-
/>
27-
<Card
28-
title="Layout Components"
29-
description="Structure your UI: Container, Card, Grid, Flex, Stack, Tabs"
30-
href="/components/layout"
31-
/>
32-
<Card
33-
title="Data Display"
34-
description="Show information: Badge, Avatar, Alert, List"
35-
href="/components/data-display"
36-
/>
37-
<Card
38-
title="Feedback Components"
39-
description="User feedback: Loading, Progress, Skeleton"
40-
href="/components/feedback"
41-
/>
42-
<Card
43-
title="Overlay Components"
44-
description="Floating elements: Dialog, Drawer, Tooltip, Popover"
45-
href="/components/overlay"
46-
/>
47-
<Card
48-
title="Disclosure Components"
49-
description="Show/hide content: Accordion, Collapsible"
50-
href="/components/disclosure"
51-
/>
52-
<Card
53-
title="Complex Components"
54-
description="Advanced patterns: Table (with sorting, filtering, pagination)"
55-
href="/components/complex"
56-
/>
57-
</Cards>
14+
### [Basic Components](/components/basic/text)
15+
Essential building blocks: Text, Icon, Image, Separator, HTML
16+
17+
### [Form Components](/components/form/button)
18+
Interactive inputs: Button, Input, Select, Checkbox, Switch, Textarea, Slider
19+
20+
### [Layout Components](/components/layout/container)
21+
Structure your UI: Container, Card, Grid, Flex, Stack, Tabs
22+
23+
### [Data Display](/components/data-display/badge)
24+
Show information: Badge, Avatar, Alert, List
25+
26+
### [Feedback Components](/components/feedback/loading)
27+
User feedback: Loading, Progress, Skeleton
28+
29+
### [Overlay Components](/components/overlay/dialog)
30+
Floating elements: Dialog, Drawer, Tooltip, Popover
31+
32+
### [Disclosure Components](/components/disclosure/accordion)
33+
Show/hide content: Accordion, Collapsible
34+
35+
### [Complex Components](/components/complex/table)
36+
Advanced patterns: Table (with sorting, filtering, pagination)
5837

5938
## Component Categories
6039

docs/components/meta.json

Lines changed: 40 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,45 @@
22
"title": "Components",
33
"pages": [
44
"index",
5-
"---",
6-
{
7-
"title": "Basic",
8-
"pages": [
9-
"basic/text",
10-
"basic/icon",
11-
"basic/image",
12-
"basic/separator",
13-
"basic/html"
14-
]
15-
},
16-
{
17-
"title": "Form",
18-
"pages": [
19-
"form/button",
20-
"form/input",
21-
"form/select",
22-
"form/checkbox",
23-
"form/switch",
24-
"form/textarea",
25-
"form/slider"
26-
]
27-
},
28-
{
29-
"title": "Layout",
30-
"pages": [
31-
"layout/container",
32-
"layout/card",
33-
"layout/grid",
34-
"layout/flex",
35-
"layout/stack",
36-
"layout/tabs"
37-
]
38-
},
39-
{
40-
"title": "Data Display",
41-
"pages": [
42-
"data-display/badge",
43-
"data-display/avatar",
44-
"data-display/alert",
45-
"data-display/list"
46-
]
47-
},
48-
{
49-
"title": "Feedback",
50-
"pages": [
51-
"feedback/loading",
52-
"feedback/progress",
53-
"feedback/skeleton"
54-
]
55-
},
56-
{
57-
"title": "Overlay",
58-
"pages": [
59-
"overlay/dialog",
60-
"overlay/drawer",
61-
"overlay/tooltip",
62-
"overlay/popover"
63-
]
64-
},
65-
{
66-
"title": "Disclosure",
67-
"pages": [
68-
"disclosure/accordion",
69-
"disclosure/collapsible"
70-
]
71-
},
72-
{
73-
"title": "Complex",
74-
"pages": [
75-
"complex/table"
76-
]
77-
}
5+
"---Basic",
6+
"basic/text",
7+
"basic/icon",
8+
"basic/image",
9+
"basic/separator",
10+
"basic/html",
11+
"---Form",
12+
"form/button",
13+
"form/input",
14+
"form/select",
15+
"form/checkbox",
16+
"form/switch",
17+
"form/textarea",
18+
"form/slider",
19+
"---Layout",
20+
"layout/container",
21+
"layout/card",
22+
"layout/grid",
23+
"layout/flex",
24+
"layout/stack",
25+
"layout/tabs",
26+
"---Data Display",
27+
"data-display/badge",
28+
"data-display/avatar",
29+
"data-display/alert",
30+
"data-display/list",
31+
"---Feedback",
32+
"feedback/loading",
33+
"feedback/progress",
34+
"feedback/skeleton",
35+
"---Overlay",
36+
"overlay/dialog",
37+
"overlay/drawer",
38+
"overlay/tooltip",
39+
"overlay/popover",
40+
"---Disclosure",
41+
"disclosure/accordion",
42+
"disclosure/collapsible",
43+
"---Complex",
44+
"complex/table"
7845
]
7946
}

docs/reference/meta.json

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
{
22
"title": "Advanced",
33
"pages": [
4-
{
5-
"title": "API Reference",
6-
"pages": [
7-
"api/core",
8-
"api/react",
9-
"api/components",
10-
"api/designer"
11-
]
12-
},
13-
{
14-
"title": "Protocol",
15-
"pages": [
16-
"protocol/overview",
17-
"protocol/page",
18-
"protocol/form",
19-
"protocol/view",
20-
"protocol/crud",
21-
"protocol/menu",
22-
"protocol/app",
23-
"protocol/report",
24-
"protocol/object"
25-
]
26-
},
27-
"---",
4+
"---API Reference",
5+
"api/core",
6+
"api/react",
7+
"api/components",
8+
"api/designer",
9+
"---Protocol",
10+
"protocol/overview",
11+
"protocol/page",
12+
"protocol/form",
13+
"protocol/view",
14+
"protocol/crud",
15+
"protocol/menu",
16+
"protocol/app",
17+
"protocol/report",
18+
"protocol/object",
19+
"---Ecosystem",
2820
"ecosystem"
2921
]
3022
}

0 commit comments

Comments
 (0)