Fumadocs

Multiple Types

Multiple content types

You can have multiple document types, such as blog posts, or documents.

Use the rootDir option to restrict the folder it scans.

import { map } from '@/.map';
import { loader } from 'fumadocs-core/source';
import { createMDXSource } from 'fumadocs-mdx';
 
export const docs = loader({
  baseUrl: '/docs',
  rootDir: 'docs',
  source: createMDXSource(map),
});
 
export const blogs = loader({
  baseUrl: '/blog',
  rootDir: 'blog',
  source: createMDXSource(map),
});

Last updated on

On this page

No Headings
Edit on Github