mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 19:06:47 -05:00
docs: improve sidebar content filtering and simplify CodeBlockTabs ren… (#7109)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -81,7 +81,7 @@ export default async function Page({
|
||||
{...props}
|
||||
className="p-0 rounded-lg border-0 bg-fd-secondary"
|
||||
>
|
||||
<div {...props}>{props.children}</div>
|
||||
{props.children}
|
||||
</CodeBlockTabs>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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: <item.icon />,
|
||||
})),
|
||||
children: content.list
|
||||
.filter((item) => !item.group && item.href)
|
||||
.map((item) => ({
|
||||
type: "page",
|
||||
url: item.href,
|
||||
name: item.title,
|
||||
icon: <item.icon />,
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user