mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
docs: enhance documentation with new modes and plugins
- 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.
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
import { loader } from "fumadocs-core/source";
|
||||
import { docs } from "@/.source";
|
||||
import { createOpenAPI, attachFile } from "fumadocs-openapi/server";
|
||||
import { icons } from "lucide-react";
|
||||
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]);
|
||||
},
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user