Initialize a Next.js-based documentation site using Fumadocs framework to provide comprehensive guides for all GPUI components. The site includes getting started guides, API references, and documentation for 40+ components including Button, Input, Table, Tree, Chart, and more. --------- Co-authored-by: Jason Lee <huacnlee@gmail.com>
24 lines
596 B
TypeScript
24 lines
596 B
TypeScript
import "@/app/global.css";
|
|
import { RootProvider } from "fumadocs-ui/provider/next";
|
|
import { Inter } from "next/font/google";
|
|
import SearchDialog from "@/components/search";
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export default function Layout({ children }: LayoutProps<"/">) {
|
|
return (
|
|
<html lang="en" className={inter.className} suppressHydrationWarning>
|
|
<body className="flex flex-col min-h-screen">
|
|
<RootProvider
|
|
search={{
|
|
SearchDialog,
|
|
}}
|
|
>
|
|
{children}
|
|
</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|