-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathsource.config.ts
More file actions
34 lines (32 loc) · 1.04 KB
/
Copy pathsource.config.ts
File metadata and controls
34 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
import { pageSchema } from 'fumadocs-core/source/schema';
import { z } from 'zod';
export const docs = defineDocs({
dir: 'content/docs',
docs: {
// Dynamic mode keeps development and production builds responsive as the
// current SDK and Server API content grows.
dynamic: true,
schema: pageSchema.extend({
product: z.string().default('chat'),
context: z.string().default('chat'),
template: z.enum(['landing', 'overview', 'guide', 'api']).default('guide'),
status: z.enum(['scaffold', 'draft', 'published', 'deprecated']).default('scaffold'),
version: z.string().optional(),
platform: z.string().optional(),
lastUpdated: z.string().optional(),
sourcePath: z.string().optional(),
edition: z.enum(['open-source', 'enterprise']).optional(),
}),
},
});
export default defineConfig({
mdxOptions: {
rehypeCodeOptions: {
themes: {
light: 'github-dark',
dark: 'github-dark',
},
},
},
});