Skip to content

Commit ab5cb3b

Browse files
authored
feat(docs): ✨ add examples section to documentation layout (#95)
1 parent c90acd5 commit ab5cb3b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

apps/registry/app/docs/layout.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ export default function DocsLayout({
2525
const categoryGroups = registry.items
2626
.filter(
2727
(item: RegistryItem) =>
28-
item.type === "registry:ui" ||
29-
item.type === "registry:hook" ||
30-
item.name === "getting-started",
28+
(item.type === "registry:ui" ||
29+
item.type === "registry:hook" ||
30+
item.name === "getting-started") &&
31+
item.name !== "native-utils",
3132
)
3233
.reduce<
3334
Record<
@@ -67,6 +68,19 @@ export default function DocsLayout({
6768
title: "Welcome",
6869
href: "/docs",
6970
},
71+
{
72+
title: "Examples",
73+
items: [
74+
{
75+
title: "Gameplan",
76+
href: "/gameplan",
77+
},
78+
{
79+
title: "LMS",
80+
href: "/lms",
81+
},
82+
],
83+
},
7084
...Object.entries(categoryGroups).map(([category, categoryItems]) => {
7185
const sortedItems = categoryItems.sort((a, b) => {
7286
return a.title.localeCompare(b.title);

0 commit comments

Comments
 (0)