Files
website/apps/docs/generate-docs.mjs
Mauricio Siu 2e5564dea7 chore: update OpenAPI documentation paths and enhance references
- Changed input path for documentation generation from './api.json' to '../../public/openapi.json'.
- Updated multiple generated documentation files to reference the new OpenAPI document path.
- Added new documentation files for 'Environment', 'Gitea', 'Organization', 'Preview Deployment', 'Rollback', 'Schedule', 'Swarm', and 'Volume Backups'.
- Enhanced existing documentation with additional endpoints and improved structure for clarity.
2025-11-30 01:03:04 -06:00

19 lines
362 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