e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
import Image from "next/image";
|
|
import type { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
|
|
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
|
|
import { DiscordIcon } from "@/components/icons/discord";
|
|
import icon from "@/public/favicon/icon.svg";
|
|
|
|
// shared configuration
|
|
export const baseOptions: BaseLayoutProps = {
|
|
githubUrl: "https://github.com/assistant-ui/assistant-ui",
|
|
links: [
|
|
{
|
|
type: "icon",
|
|
icon: <DiscordIcon className="size-4" />,
|
|
text: "Discord",
|
|
url: "https://discord.gg/S9dwgCNEFs",
|
|
},
|
|
],
|
|
themeSwitch: {
|
|
enabled: false,
|
|
},
|
|
nav: {
|
|
title: (
|
|
<>
|
|
<Image
|
|
src={icon}
|
|
alt="logo"
|
|
width={18}
|
|
height={18}
|
|
className="inline dark:hue-rotate-180 dark:invert"
|
|
/>
|
|
<span className="text-base font-medium tracking-tight">
|
|
assistant-ui
|
|
</span>
|
|
</>
|
|
),
|
|
transparentMode: "none",
|
|
},
|
|
};
|
|
|
|
export const sharedDocsOptions: Partial<DocsLayoutProps> = {
|
|
...baseOptions,
|
|
sidebar: {
|
|
defaultOpenLevel: 1,
|
|
collapsible: false,
|
|
},
|
|
searchToggle: {
|
|
enabled: false,
|
|
},
|
|
};
|