File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- import {
2
- defineConfig ,
3
- defineDocs ,
4
- frontmatterSchema ,
5
- metaSchema ,
6
- } from "fumadocs-mdx/config" ;
1
+ import { defineConfig , defineDocs } from "fumadocs-mdx/config" ;
7
2
import { z } from "zod" ;
8
3
9
4
export const docs = defineDocs ( {
10
5
docs : {
11
- schema : frontmatterSchema . extend ( {
6
+ schema : z . object ( {
7
+ title : z . string ( ) ,
8
+ description : z . string ( ) ,
9
+ icon : z . string ( ) . optional ( ) ,
10
+ full : z . boolean ( ) . default ( false ) ,
12
11
index : z . boolean ( ) . default ( false ) ,
13
12
} ) ,
14
13
} ,
15
14
meta : {
16
- schema : metaSchema . extend ( {
15
+ schema : z . object ( {
16
+ title : z . string ( ) . optional ( ) ,
17
+ pages : z . array ( z . string ( ) ) . optional ( ) ,
17
18
description : z . string ( ) . optional ( ) ,
19
+ root : z . boolean ( ) . optional ( ) ,
20
+ defaultOpen : z . boolean ( ) . optional ( ) ,
21
+ icon : z . string ( ) . optional ( ) ,
18
22
} ) ,
19
23
} ,
20
24
} ) ;
You can’t perform that action at this time.
0 commit comments