Fumadocs

Global Options

Customise Fumadocs MDX

Global Options

Shared options of Fumadocs MDX.

source.config.ts
import { defineConfig } from 'fumadocs-mdx/config';
 
export default defineConfig({
  // global options
});
PropTypeDefault
mdxOptions
DefaultMDXOptions
-
lastModifiedTime
"git" | "none"
'none'
generateManifest
boolean
false

MDX Options

Customise the MDX processor options for MDX files.

source.config.ts
import { defineConfig } from 'fumadocs-mdx/config';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math';
 
export default defineConfig({
  mdxOptions: {
    remarkPlugins: [remarkMath],
    // When order matters
    rehypePlugins: (v) => [rehypeKatex, ...v],
  },
});

Some default options are applied by Fumadocs MDX, see Extended MDX Options for available options.

Manifest

Enable the generateManifest option to generate a manifest file for production builds.

See Manifest to learn more.

Edit on GitHub

Last updated on

On this page