Integrations
OpenAPI
Generate deterministic API reference pages from an OpenAPI document.
@foldocs/openapi accepts a JSON object, local file, URL, or serialized OpenAPI
document and turns operations into normal Foldocs pages. Generated files use the
same navigation, search, Markdown, and static output pipeline as authored pages.
Install
pnpm add -D @foldocs/openapiGeneration modes
generateOpenApiFilesreturns an in-memory file list for custom build tools.generateFilesOnlywrites pages without starting another process.generateFileswrites pages and records a manifest for safe regeneration.
Stable output
Set an explicit output directory and base route. Commit generated files when reviewable diffs matter, or generate them in CI when the schema is already versioned and immutable.
Last updated Aug 2, 2026