Skip to content

fumadocs-mdx@10.0.0

Compare
Choose a tag to compare
@fuma-nama fuma-nama released this 02 Sep 09:18
· 203 commits to dev since this release
a3a4d44

Major Changes

  • ed83d01: Support declarative collections

    why: This allows Fumadocs MDX to be more flexible.

    migrate:

    You don't need exports anymore, properties are merged into one object by default.

    - page.data.exports.toc
    + page.data.toc
    
    - page.data.exports.default
    + page.data.body

    A source.config.ts is now required.

    import { defineDocs, defineConfig } from 'fumadocs-mdx/config';
    
    export const { docs, meta } = defineDocs();
    
    export default defineConfig();

    The mdx-components.tsx file is no longer used, pass MDX components to body instead.

    Search indexes API is now replaced by Manifest API.

    Please refer to the docs for further details.

Patch Changes