30 lines
767 B
TypeScript
30 lines
767 B
TypeScript
import { remarkMermaid } from '@theguild/remark-mermaid'
|
|
import { rehypeCodeDefaultOptions } from 'fumadocs-core/mdx-plugins'
|
|
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',
|
|
langs: ['bash', 'js', 'jsx', 'ts', 'tsx'],
|
|
themes: {
|
|
dark: 'one-dark-pro',
|
|
light: 'one-light',
|
|
},
|
|
transformers: [
|
|
...(rehypeCodeDefaultOptions.transformers ?? []),
|
|
transformerTwoslash(),
|
|
],
|
|
},
|
|
remarkPlugins: [
|
|
remarkMermaid,
|
|
],
|
|
},
|
|
})
|