feat(docs): add OpenAPI API reference from oRPC contract

Generate an OpenAPI 3.1 spec from the oRPC contract at build time
using @orpc/openapi, then use fumadocs-openapi to render interactive
API reference pages grouped by tag (Titles, Episodes, Seasons, etc.).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-14 13:07:42 -04:00
co-authored by Claude Opus 4.6
parent 17ddffef41
commit 3148574d5b
50 changed files with 5709 additions and 64 deletions
+9
View File
@@ -0,0 +1,9 @@
import { generateFiles } from "fumadocs-openapi";
import { openapi } from "../src/lib/openapi";
void generateFiles({
input: openapi,
output: "./content/docs/api",
per: "tag",
addGeneratedComment: true,
});