From 394a37576c47f579bde8118cba3b830bbda4328f Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Fri, 27 Feb 2026 02:36:18 +0530 Subject: [PATCH] refactor: update layout configuration and enhance documentation layout --- surfsense_web/app/docs/layout.tsx | 10 +++++++++- surfsense_web/app/globals.css | 1 + surfsense_web/app/layout.config.tsx | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/surfsense_web/app/docs/layout.tsx b/surfsense_web/app/docs/layout.tsx index 27dd5de7a..452106396 100644 --- a/surfsense_web/app/docs/layout.tsx +++ b/surfsense_web/app/docs/layout.tsx @@ -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 ( - + {children} ); diff --git a/surfsense_web/app/globals.css b/surfsense_web/app/globals.css index c192a27be..11d7d7a94 100644 --- a/surfsense_web/app/globals.css +++ b/surfsense_web/app/globals.css @@ -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'; + diff --git a/surfsense_web/app/layout.config.tsx b/surfsense_web/app/layout.config.tsx index b1b07fd02..214c5b940 100644 --- a/surfsense_web/app/layout.config.tsx +++ b/surfsense_web/app/layout.config.tsx @@ -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", };