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.
This commit is contained in:
Mauricio Siu
2025-11-30 01:03:04 -06:00
parent 7a91ea003a
commit 2e5564dea7
41 changed files with 812 additions and 87 deletions

View File

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