mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
- Introduced SidebarSeparator component for improved sidebar organization. - Updated layout configuration to utilize the new SidebarSeparator in the documentation layout.
26 lines
722 B
TypeScript
26 lines
722 B
TypeScript
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"
|
|
"sidebar main toc" 1fr / var(--fd-sidebar-col) minmax(0, 1fr) min-content`;
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<DocsLayout
|
|
tree={source.pageTree}
|
|
{...baseOptions}
|
|
containerProps={{ style: { gridTemplate }, className: "bg-fd-card" }}
|
|
sidebar={{
|
|
components: {
|
|
Separator: SidebarSeparator,
|
|
},
|
|
}}
|
|
>
|
|
{children}
|
|
</DocsLayout>
|
|
);
|
|
}
|