From c16afc973095a8ad260983026dca4fa2209e54e9 Mon Sep 17 00:00:00 2001 From: Subhrodip Mohanta Date: Thu, 5 Nov 2026 03:12:15 +0100 Subject: [PATCH 01/20] fix: repair API reference links and metadata --- docs/tooling/finalize-api-reference.mjs | 25 +++++++++++++++++++++++++ docs/tooling/package.json | 2 +- docs/tooling/redocly.yaml | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 docs/tooling/finalize-api-reference.mjs diff --git a/docs/tooling/finalize-api-reference.mjs b/docs/tooling/finalize-api-reference.mjs new file mode 100644 index 0000000..0e7742e --- /dev/null +++ b/docs/tooling/finalize-api-reference.mjs @@ -0,0 +1,25 @@ +import { readFile, writeFile } from "node:fs/promises"; + +const output = new URL("../../site/api/reference/index.html", import.meta.url); +const basePath = "/twitter-backend-java/api/reference"; +const canonicalUrl = `https://subho.xyz${basePath}/`; +const description = "Interactive OpenAPI reference for the Moo Twitter Backend."; +let html = await readFile(output, "utf8"); +const scriptStart = html.indexOf('