diff --git a/docs/app/docs/[[...slug]]/page.tsx b/docs/app/docs/[[...slug]]/page.tsx index 6c8a5148a3..bf67169615 100644 --- a/docs/app/docs/[[...slug]]/page.tsx +++ b/docs/app/docs/[[...slug]]/page.tsx @@ -81,7 +81,7 @@ export default async function Page({ {...props} className="p-0 rounded-lg border-0 bg-fd-secondary" > -
{props.children}
+ {props.children} ); }, diff --git a/docs/components/sidebar-content.tsx b/docs/components/sidebar-content.tsx index 54e73adbc2..032f0c9d9f 100644 --- a/docs/components/sidebar-content.tsx +++ b/docs/components/sidebar-content.tsx @@ -71,12 +71,14 @@ function contentToPageTree(content: Content): PageTree.Folder { url: content.href, } : undefined, - children: content.list.map((item) => ({ - type: "page", - url: item.href, - name: item.title, - icon: , - })), + children: content.list + .filter((item) => !item.group && item.href) + .map((item) => ({ + type: "page", + url: item.href, + name: item.title, + icon: , + })), }; }