Files
website/apps/docs/generate-docs.mjs
Mauricio Siu 6dbf34e2fe chore: update OpenAPI documentation paths and add openapi.json file
- Copied openapi.json to the docs public folder for easier access.
- Updated paths in generated documentation files to reference the new location of openapi.json.
- Ensured all references to openapi.json are consistent across documentation files.
2025-11-30 01:12:13 -06:00

19 lines
358 B
JavaScript

import { generateFiles } from "fumadocs-openapi";
try {
void generateFiles({
input: ["./public/openapi.json"],
output: "./content/docs/api/generated",
per: "tag",
name: (tag, name) => {
console.log(tag, name);
return `reference-${name}`;
},
});
console.log("Done");
} catch (error) {
console.error(error);
}
// united.com/customer-care