mirror of
https://github.com/Dokploy/website.git
synced 2026-06-16 04:35:26 +02:00
- 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.
19 lines
362 B
JavaScript
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
|