Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

publier.openapi.generate

The publier.openapi.generate module.

Overview

Interfaces

Functions

generateFiles

function generateFiles(options: GenerateFilesOptions): string[]

Generates individual MDX files from an OpenAPI spec.

Each endpoint becomes a standalone MDX page with:

  • Frontmatter (title, description, method, path, tags)
  • Exported operation const with the full operation data
  • <APIReference> component rendering the endpoint

Parameters

NameType
optionsGenerateFilesOptions