refactor: update layout configuration and enhance documentation layout

This commit is contained in:
Anish Sarkar 2026-02-27 02:36:18 +05:30
parent 20ebb0703f
commit 394a37576c
3 changed files with 12 additions and 3 deletions

View file

@ -3,9 +3,17 @@ import type { ReactNode } from "react";
import { baseOptions } from "@/app/layout.config";
import { source } from "@/lib/source";
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}>
<DocsLayout
tree={source.pageTree}
{...baseOptions}
containerProps={{ style: { gridTemplate }, className: "bg-fd-card" }}
>
{children}
</DocsLayout>
);

View file

@ -235,3 +235,4 @@ button {
@source '../node_modules/streamdown/dist/*.js';
@source '../node_modules/@streamdown/code/dist/*.js';
@source '../node_modules/@streamdown/math/dist/*.js';

View file

@ -1,7 +1,7 @@
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
export const baseOptions: BaseLayoutProps = {
nav: {
title: "SurfSense Documentation",
title: "SurfSense Docs",
},
githubUrl: "https://github.com/MODSetter/SurfSense",
};