feat(web): add special sponsors docs sidebar

This commit is contained in:
Aman Varshney
2025-07-30 17:29:26 +05:30
parent e546fc0623
commit 12cbbe560a
2 changed files with 81 additions and 2 deletions

View File

@@ -1,13 +1,17 @@
import { Banner } from "fumadocs-ui/components/banner";
import { DocsLayout, type DocsLayoutProps } from "fumadocs-ui/layouts/docs";
import type { ReactNode } from "react";
import { baseOptions, links } from "@/app/layout.config";
import { baseOptions } from "@/app/layout.config";
import { SpecialSponsorBanner } from "@/components/special-sponsor-banner";
import { source } from "@/lib/source";
const docsOptions: DocsLayoutProps = {
...baseOptions,
tree: source.pageTree,
links: links.filter((link) => "text" in link && link.text !== "Docs"),
links: [],
sidebar: {
banner: <SpecialSponsorBanner />,
},
};
export default function Layout({ children }: { children: ReactNode }) {