github fuma-nama/fumadocs fumadocs-mdx@10.0.0

latest releases: fumadocs-mdx@11.9.1, fumadocs-openapi@9.3.8, create-fumadocs-app@15.7.11...
12 months ago

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

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.