mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-19 08:49:26 +00:00
feat(docs): add openapiPlugin() to lib/source.ts
This commit is contained in:
parent
1f0cbffb2d
commit
0fdbdd4d1c
1 changed files with 2 additions and 1 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
import { type InferPageType, loader } from "fumadocs-core/source";
|
import { type InferPageType, loader } from "fumadocs-core/source";
|
||||||
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
|
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
|
||||||
|
import { openapiPlugin } from "fumadocs-openapi/server";
|
||||||
import { docs } from "@/.source";
|
import { docs } from "@/.source";
|
||||||
|
|
||||||
// See https://fumadocs.dev/docs/headless/source-api for more info
|
// See https://fumadocs.dev/docs/headless/source-api for more info
|
||||||
export const source = loader({
|
export const source = loader({
|
||||||
baseUrl: "/docs",
|
baseUrl: "/docs",
|
||||||
source: docs.toFumadocsSource(),
|
source: docs.toFumadocsSource(),
|
||||||
plugins: [lucideIconsPlugin()],
|
plugins: [lucideIconsPlugin(), openapiPlugin()],
|
||||||
});
|
});
|
||||||
|
|
||||||
export function getPageImage(page: InferPageType<typeof source>) {
|
export function getPageImage(page: InferPageType<typeof source>) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue