github fuma-nama/fumadocs fumadocs@16.18.3

latest releases: fumadocs-obsidian@1.2.2, fumadocs-mdx@15.5.2, @fumadocs/satteri@0.7.2...
2 hours ago
  • @fumadocs/base-ui@16.18.3
  • fumadocs-core@16.18.3
  • fumadocs-ui@16.18.3

GitHub links to bracketed paths

  • editOnGithub of DocsPage opens files under folders like [slug].

Root Folders of a Type in the Spacious Sidebar

  • The Spacious sidebar switches between root folders of a type (root: 'version') below the section switcher, in one control.
  • A root folder that only contains folders gets a tab, linking to its first page.

Frontmatter and Meta Files in Code

  • An MDX page can export frontmatter, merged into its frontmatter and validated by the schema. On a dynamic page, it reads the params as props.
  • Meta files can be modules, like meta.ts. The meta file of a dynamic folder can export a function of the folder's params.

Processed Markdown

  • Removed content, like imports, no longer leaves blank lines.

Path params and <show>

  • A folder or file named [name] makes a page for each value listed in staticParams of its meta file or frontmatter.
  • Each page is compiled for its params, read as props, and a file at a static path replaces the page of its value.
  • <show when={...}> shows content on a condition. Conditions on params and inlined env vars are decided before headings, TOC, search and Markdown.
  • The define option of Remark Show sets the values resolved at build time, like Vite's define, also per page.
  • Custom sources give a dynamic file dataAt(), and getStaticParams() lists its params from any storage.

Rendering Inline Styles

  • Inline styles follow hast-util-to-jsx-runtime 2.3.7: property names are lowercased, custom properties keep their case, and only url() keeps a ; inside parentheses.

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.