Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: site navigation fix

Dillion Verma1706b23c6bc6
diff --git a/content-collections.ts b/content-collections.ts
index 1d4e6817..8b02b36c 100644
--- a/content-collections.ts
+++ b/content-collections.ts
@@ -90,10 +90,9 @@ const pages = defineCollection({
};
},
});
-
const documents = defineCollection({
name: "Doc",
- directory: "content",
+ directory: "content/docs",
include: "**/*.mdx",
schema: (z) => ({
title: z.string(),
@@ -185,8 +184,8 @@ const documents = defineCollection({
return {
...document,
image: `${process.env.NEXT_PUBLIC_APP_URL}/og?title=${encodeURI(document.title)}&description=${encodeURI(document.description)}`,
- slug: `/${document._meta.path}`,
- slugAsParams: document._meta.path.split("/").slice(1).join("/"),
+ slug: `/docs/${document._meta.path}`,
+ slugAsParams: document._meta.path,
body: {
raw: document.content,
code: body,