File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { transformerTwoslash } from "fumadocs-twoslash";
5
5
import rehypeKatex from "rehype-katex" ;
6
6
import remarkMath from "remark-math" ;
7
7
8
- export const { docs, meta } = defineDocs ( {
8
+ export const docs = defineDocs ( {
9
9
dir : "./src/content/docs" ,
10
10
} ) ;
11
11
Original file line number Diff line number Diff line change 1
- import { docs , meta } from '../../.source' ;
2
- import { createMDXSource } from 'fumadocs-mdx' ;
1
+ import { docs } from '@/.source' ;
3
2
import { loader } from 'fumadocs-core/source' ;
4
3
import { createOpenAPI } from "fumadocs-openapi/server" ;
5
4
6
5
export const source = loader ( {
7
6
baseUrl : '/docs' ,
8
- source : createMDXSource ( docs , meta ) ,
7
+ source : docs . toFumadocsSource ( ) ,
9
8
} ) ;
10
9
11
10
export const openapi = createOpenAPI ( ) ;
Original file line number Diff line number Diff line change 16
16
"jsx" : " preserve" ,
17
17
"incremental" : true ,
18
18
"paths" : {
19
- "@/*" : [" ./src/*" ]
19
+ "@/*" : [" ./src/*" ],
20
+ "@/.source" : [" ./.source/index.ts" ]
20
21
},
21
22
"plugins" : [
22
23
{
You can’t perform that action at this time.
0 commit comments