25 lines
668 B
TypeScript
25 lines
668 B
TypeScript
import { rehypeCodeDefaultOptions } from 'fumadocs-core/mdx-plugins'
|
|
import { remarkInstall } from 'fumadocs-docgen'
|
|
import { defineConfig, defineDocs } from 'fumadocs-mdx/config'
|
|
import { transformerTwoslash } from 'fumadocs-twoslash'
|
|
|
|
export const { docs, meta } = defineDocs({
|
|
dir: 'content/docs',
|
|
})
|
|
|
|
export default defineConfig({
|
|
lastModifiedTime: 'git',
|
|
mdxOptions: {
|
|
rehypeCodeOptions: {
|
|
inline: 'tailing-curly-colon',
|
|
transformers: [
|
|
...(rehypeCodeDefaultOptions.transformers ?? []),
|
|
transformerTwoslash(),
|
|
],
|
|
},
|
|
remarkPlugins: [
|
|
[remarkInstall, { persist: { id: 'package-manager' } }],
|
|
],
|
|
},
|
|
})
|