25 lines
560 B
TypeScript
25 lines
560 B
TypeScript
import {rehypeCodeDefaultOptions} from "fumadocs-core/mdx-plugins";
|
|
import {defineConfig, defineDocs} from "fumadocs-mdx/config";
|
|
|
|
export const docs = defineDocs({
|
|
dir: "content/docs",
|
|
});
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
providerImportSource: "@/mdx-components",
|
|
rehypeCodeOptions: {
|
|
...rehypeCodeDefaultOptions,
|
|
// Preserve meta strings in the output
|
|
// meta: true,
|
|
},
|
|
rehypePlugins: [],
|
|
remarkNpmOptions: {
|
|
persist: {
|
|
id: "package-manager",
|
|
},
|
|
},
|
|
remarkPlugins: [],
|
|
},
|
|
});
|