mirror of
https://github.com/vercel/streamdown.git
synced 2026-09-19 02:18:37 +08:00
44ae73eaaf
* Initial migration * Update homepage * Delete .source * Fix gitignores * Draft content * Finish drafting content, migrate FAQ * Update code-blocks.tsx * Update route.ts * Update next config * Upgrade to Next.js 16, fix commands * Update layout.tsx
38 lines
964 B
TypeScript
38 lines
964 B
TypeScript
import { DocsLayout as FumadocsDocsLayout } from "fumadocs-ui/layouts/docs";
|
|
import { Folder, Item, Separator } from "@/components/geistdocs/sidebar";
|
|
import { source } from "@/lib/geistdocs/source";
|
|
|
|
export const DocsLayout = ({
|
|
children,
|
|
}: Pick<LayoutProps<"/docs">, "children">) => (
|
|
<FumadocsDocsLayout
|
|
containerProps={{
|
|
className:
|
|
"md:grid md:grid-cols-[286px_1fr_286px] md:pl-0! md:mx-auto! md:w-full md:max-w-(--fd-layout-width)!",
|
|
}}
|
|
nav={{
|
|
enabled: false,
|
|
}}
|
|
searchToggle={{
|
|
enabled: false,
|
|
}}
|
|
sidebar={{
|
|
className:
|
|
"md:static md:sticky md:top-16 md:h-fit md:w-auto! bg-background! md:bg-transparent! border-none transition-none",
|
|
collapsible: false,
|
|
components: {
|
|
Folder,
|
|
Item,
|
|
Separator,
|
|
},
|
|
}}
|
|
tabMode="auto"
|
|
themeSwitch={{
|
|
enabled: false,
|
|
}}
|
|
tree={source.pageTree}
|
|
>
|
|
{children}
|
|
</FumadocsDocsLayout>
|
|
);
|