From 8f44b9693b9e3f135d6e332d3f42326479a1b0eb Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 17 Feb 2026 12:36:24 +0000 Subject: [PATCH 1/8] fix: remove unused StarIcon import from GitHub link component --- apps/website/src/components/github-link.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/website/src/components/github-link.tsx b/apps/website/src/components/github-link.tsx index b8646b6..6801919 100644 --- a/apps/website/src/components/github-link.tsx +++ b/apps/website/src/components/github-link.tsx @@ -4,7 +4,6 @@ import useSWR from "swr"; import { cn } from "@/utils/cn"; import { globals } from "@/globals"; -import { StarIcon } from "lucide-react"; import { GitHub } from "@/components/ui/svgs/github"; import { buttonVariants } from "@/components/ui/button"; From 9836b4eb79883ad41bee08f4d29a50989fb9dc05 Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 17 Feb 2026 12:39:56 +0000 Subject: [PATCH 2/8] feat: add withGenerals option to getDocument, fixed og image for homepage --- apps/website/src/app/api/docs/og/route.tsx | 1 + apps/website/src/utils/docs.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/website/src/app/api/docs/og/route.tsx b/apps/website/src/app/api/docs/og/route.tsx index c19db4f..d1c494c 100644 --- a/apps/website/src/app/api/docs/og/route.tsx +++ b/apps/website/src/app/api/docs/og/route.tsx @@ -27,6 +27,7 @@ export async function GET(request: Request) { const docData = getDocument({ folder: folder, document: document, + withGenerals: true, }); if (!docData) { diff --git a/apps/website/src/utils/docs.ts b/apps/website/src/utils/docs.ts index b117042..bc62229 100644 --- a/apps/website/src/utils/docs.ts +++ b/apps/website/src/utils/docs.ts @@ -28,6 +28,7 @@ type Doc = Document & interface GetDocument { folder: string; document: string; + withGenerals?: boolean; } const normalizePath = (path: string): string => { @@ -42,12 +43,19 @@ const allDocs = allDocsArray.filter( ), ); -const getDocument = ({ folder, document }: GetDocument): Doc | undefined => { +const getDocument = ({ + folder, + document, + withGenerals, +}: GetDocument): Doc | undefined => { const normalizedDocument = normalizePath(document); const doc = allDocs.find((doc) => { const normalizedPath = normalizePath(doc._meta.path); return doc.folder === folder && normalizedPath === normalizedDocument; }); + if (!doc && withGenerals) { + return getGeneralDocument(document); + } if (!doc) { return undefined; } From b8e3b4cae1428586ec90dcd8fbaf3d586b1bcb5b Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 17 Feb 2026 12:46:49 +0000 Subject: [PATCH 3/8] fix: update sidebar width to 57.5 for consistency across components --- apps/website/src/components/ui/sidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/website/src/components/ui/sidebar.tsx b/apps/website/src/components/ui/sidebar.tsx index f12c798..8147653 100644 --- a/apps/website/src/components/ui/sidebar.tsx +++ b/apps/website/src/components/ui/sidebar.tsx @@ -26,7 +26,7 @@ const Sidebar = ({ children, position }: SidebarProps) => { return (