mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
Replace the single MDX file per API tag (e.g. `admin.mdx`, `titles.mdx`) with individual files for each procedure (e.g. `admin/admin.backups.create.mdx`). Each file renders a single `<APIPage>` with one operation, includes an inline description, and carries its own `_openapi` frontmatter. Update `generate-api-docs.ts` to emit this per-procedure structure and adjust `source.ts` and `next.config.mjs` to resolve the new paths correctly.
11 lines
247 B
TypeScript
11 lines
247 B
TypeScript
import { generateFiles } from "fumadocs-openapi";
|
|
import { openapi } from "../src/lib/openapi";
|
|
|
|
void generateFiles({
|
|
input: openapi,
|
|
output: "./content/docs/api",
|
|
groupBy: "tag",
|
|
addGeneratedComment: true,
|
|
includeDescription: true,
|
|
});
|