Files
website/apps/docs-new/generate-docs.mjs
Mauricio Siu 55b254da6d feat: enhance API documentation and integrate OpenAPI features
- Added new OpenAPI components and updated the documentation structure with new MDX files for various API references.
- Introduced a script to fix OpenAPI schema issues, ensuring proper response schemas and security definitions.
- Updated package dependencies to include fumadocs-openapi for improved API documentation generation.
- Enhanced global CSS to incorporate new styles from fumadocs-openapi.
- Modified the pnpm-lock.yaml to reflect new package versions and dependencies.
2025-12-07 05:53:15 -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