Skip to content

fumadocs@16.14.5

Choose a tag to compare

@github-actions github-actions released this 18 Aug 15:04
3043da2
  • @fumadocs/base-ui@16.14.5
  • fumadocs-core@16.14.5
  • fumadocs-ui@16.14.5

Add a main landmark to docs, notebook and flux pages

The page container slot now wraps <article id="nd-page"> in a <main class="contents"> in the docs, notebook and flux layouts. All props, id="nd-page" and the layout classes stay on the <article>, so existing selectors and refs keep working.

Loader: next parameter for custom slugs function

The slugs option now receives a next function as its second argument, which generates the default slugs from the file path. This lets custom slug functions build on the default generation instead of reimplementing it:

loader({
  slugs(file, next) {
    if (file.path.startsWith('blog/')) return ['blog', ...next()];
    // return `undefined` to generate default slugs
  },
});

Behavior change: conflicting cases like dir/index.mdx vs dir.mdx are now resolved for custom slugs functions as well. Index files are always processed after other pages, and receive an index suffix when their slugs (custom or default) collide with an existing page — previously, custom slugs functions that produced such collisions threw a Duplicated slugs error.