mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
24 lines
499 B
TypeScript
24 lines
499 B
TypeScript
import type { DocsLayoutProps } from 'fumadocs-ui/layout';
|
|
import type { HomeLayoutProps } from 'fumadocs-ui/home-layout';
|
|
import { pageTree } from '@/app/source';
|
|
|
|
// shared configuration
|
|
export const baseOptions: HomeLayoutProps = {
|
|
nav: {
|
|
title: 'Better Auth',
|
|
},
|
|
links: [
|
|
{
|
|
text: 'Documentation',
|
|
url: '/docs',
|
|
active: 'nested-url',
|
|
},
|
|
],
|
|
};
|
|
|
|
// docs layout configuration
|
|
export const docsOptions: DocsLayoutProps = {
|
|
...baseOptions,
|
|
tree: pageTree,
|
|
};
|