mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
- Enhanced API documentation with new MDX files and improved structure. - Updated OpenAPI specifications to reflect recent changes and added new components. - Refined global CSS and layout configurations for better styling and user experience. - Added various images and icons to enrich the visual aspects of the documentation. - Updated package dependencies to ensure compatibility with the latest features.
20 lines
456 B
JavaScript
20 lines
456 B
JavaScript
import { generateFiles } from "fumadocs-openapi";
|
|
import { createOpenAPI } from "fumadocs-openapi/server";
|
|
|
|
const openapi = createOpenAPI({
|
|
input: ["./public/openapi.json"],
|
|
});
|
|
|
|
try {
|
|
await generateFiles({
|
|
input: openapi,
|
|
output: "./content/docs/api",
|
|
per: "tag",
|
|
includeDescription: true,
|
|
});
|
|
console.log("✓ Generated API documentation files");
|
|
} catch (error) {
|
|
console.error("Error generating docs:", error.message);
|
|
process.exit(1);
|
|
}
|