feat(docs): add openapiPlugin() to lib/source.ts

This commit is contained in:
rzmk 2025-12-02 20:15:07 -05:00
parent 1f0cbffb2d
commit 0fdbdd4d1c

View file

@ -1,12 +1,13 @@
import { type InferPageType, loader } from "fumadocs-core/source";
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
import { openapiPlugin } from "fumadocs-openapi/server";
import { docs } from "@/.source";
// See https://fumadocs.dev/docs/headless/source-api for more info
export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
plugins: [lucideIconsPlugin()],
plugins: [lucideIconsPlugin(), openapiPlugin()],
});
export function getPageImage(page: InferPageType<typeof source>) {