refactor(docs): split grouped API reference pages into per-procedure MDX files

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.
This commit is contained in:
jake committed 2026-03-15 11:02:58 -04:00
1 parent 297eb6b550
commit fe81a541b4
70 files changed
+988 -628

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ import { openapi } from "../src/lib/openapi";
void generateFiles({
input: openapi,
output: "./content/docs/api",
per: "tag",
groupBy: "tag",
addGeneratedComment: true,
includeDescription: true,
});