diff --git a/surfsense_web/app/docs/layout.tsx b/surfsense_web/app/docs/layout.tsx index 452106396..9311a45b4 100644 --- a/surfsense_web/app/docs/layout.tsx +++ b/surfsense_web/app/docs/layout.tsx @@ -2,6 +2,7 @@ import { DocsLayout } from "fumadocs-ui/layouts/docs"; import type { ReactNode } from "react"; import { baseOptions } from "@/app/layout.config"; import { source } from "@/lib/source"; +import { SidebarSeparator } from "./sidebar-separator"; const gridTemplate = `"sidebar header toc" "sidebar toc-popover toc" @@ -13,6 +14,11 @@ export default function Layout({ children }: { children: ReactNode }) { tree={source.pageTree} {...baseOptions} containerProps={{ style: { gridTemplate }, className: "bg-fd-card" }} + sidebar={{ + components: { + Separator: SidebarSeparator, + }, + }} > {children} diff --git a/surfsense_web/app/docs/sidebar-separator.tsx b/surfsense_web/app/docs/sidebar-separator.tsx new file mode 100644 index 000000000..36fff09a4 --- /dev/null +++ b/surfsense_web/app/docs/sidebar-separator.tsx @@ -0,0 +1,12 @@ +"use client"; + +import type { Separator } from "fumadocs-core/page-tree"; + +export function SidebarSeparator({ item }: { item: Separator }) { + return ( +

+ {item.icon} + {item.name} +

+ ); +}