Fumadocs

Generate Types

Generate types without running dev/build server

Overview

You can run fumadocs-mdx to generate types & index file (e.g. the .source folder).

Optionally, you can run it in post install to ensure types are generated when initializing the project.

package.json
{
  "scripts": {
    "postinstall": "fumadocs-mdx"
  }
}

If your project uses a custom path for configuration file or output directory, you can provide them as command arguments:

npx fumadocs-mdx <config-path> <output-dir>
  • config-path: Fumadocs MDX config file, default to source.config.ts.
  • output-dir: Directory of generated files, default to .source.

How is this guide?

Last updated on

On this page