github fuma-nama/fumadocs next-docs-mdx@7.0.0

latest releases: fumadocs-core@15.7.12, fumadocs-openapi@9.3.9, create-fumadocs-app@15.7.12...
20 months ago

Major Changes

  • 9929c5b: Prefer .map.ts instead of _map.ts

    Unless you have especially configured, now it uses .map.ts by default.

    - import map from "@/_map"
    + import map from "@/.map"
  • 9929c5b: Migrate to Source API

    fromMap has been removed. Please use createMDXSource instead.

    import { map } from '@/.map';
    import { createMDXSource } from 'next-docs-mdx';
    import { loader } from 'next-docs-zeta/source';
    
    export const { getPage, getPages, pageTree } = loader({
      baseUrl: '/docs',
      rootDir: 'docs',
      source: createMDXSource(map),
    });

Minor Changes

  • 8fd769f: Support last modified timestamp for Git

    Enable this in next.config.mjs:

    const withNextDocs = createNextDocs({
      mdxOptions: {
        lastModifiedTime: 'git',
      },
    });

    Access it via page.data.exports.lastModified.

Patch Changes

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.