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>
36 lines
763 B
TypeScript
36 lines
763 B
TypeScript
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
|
|
|
|
/**
|
|
* Shared layout configurations
|
|
*
|
|
* you can customise layouts individually from:
|
|
* Home Layout: app/(home)/layout.tsx
|
|
* Docs Layout: app/docs/layout.tsx
|
|
*/
|
|
export function baseOptions(): BaseLayoutProps {
|
|
return {
|
|
nav: {
|
|
title: (
|
|
<>
|
|
<span className="font-semibold">GPUI Component</span>
|
|
</>
|
|
),
|
|
},
|
|
links: [
|
|
{
|
|
text: "Documentation",
|
|
url: "/docs",
|
|
active: "nested-url",
|
|
},
|
|
{
|
|
text: "Components",
|
|
url: "/docs/components/accordion",
|
|
},
|
|
{
|
|
text: "GitHub",
|
|
url: "https://github.com/longbridge/gpui-component",
|
|
external: true,
|
|
},
|
|
],
|
|
};
|
|
}
|