Npm Factory

@npm-factory/docs-preset

Provides navigation helpers and shared UI components used by npm-factory documentation sites. Generated sites import this package automatically.

  • Stability: beta
  • Platform: React

What it does

  • createDocsNavFromDot(dot) — builds a Fumadocs-compatible navigation tree from your DOT config. Includes module overview, getting started, and (when docs.apiDocs is enabled) API and JSDoc pages.
  • UI components — shared MDX components used across generated doc sites.

Install

Already included in generated sites. To add manually:

pnpm add @npm-factory/docs-preset

On this page