mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
- Updated documentation to include new modes for configuring bknd (UI-only, Code-only, Hybrid). - Introduced `syncSecrets` plugin example in the extending plugins documentation. - Added `react-icons` dependency to package.json and package-lock.json. - Enhanced various documentation pages with icons and improved content structure.
30 lines
775 B
TypeScript
30 lines
775 B
TypeScript
import { loader } from "fumadocs-core/source";
|
|
import { docs } from "@/.source";
|
|
import { createOpenAPI, attachFile } from "fumadocs-openapi/server";
|
|
import icons from "./icons";
|
|
import { createElement } from "react";
|
|
import { TbBrandReact, TbBrandTypescript } from "react-icons/tb";
|
|
|
|
const add_icons = {
|
|
TypeScript: TbBrandTypescript,
|
|
React: TbBrandReact,
|
|
};
|
|
|
|
export const source = loader({
|
|
baseUrl: "/",
|
|
source: docs.toFumadocsSource(),
|
|
pageTree: {
|
|
// adds a badge to each page item in page tree
|
|
attachFile,
|
|
},
|
|
icon(icon) {
|
|
if (!icon) {
|
|
// You may set a default icon
|
|
return;
|
|
}
|
|
if (icon in icons) return createElement(icons[icon as keyof typeof icons]);
|
|
},
|
|
});
|
|
|
|
export const openapi = createOpenAPI();
|