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.
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { remarkInstall } from "fumadocs-docgen";
|
|
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from "fumadocs-mdx/config";
|
|
import { transformerTwoslash } from "fumadocs-twoslash";
|
|
import { createFileSystemTypesCache } from "fumadocs-twoslash/cache-fs";
|
|
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
|
|
import { remarkAutoTypeTable } from "fumadocs-typescript";
|
|
|
|
// You can customise Zod schemas for frontmatter and `meta.json` here
|
|
// see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
|
|
export const docs = defineDocs({
|
|
docs: {
|
|
schema: frontmatterSchema,
|
|
},
|
|
meta: {
|
|
schema: metaSchema,
|
|
},
|
|
});
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
remarkPlugins: [remarkInstall, remarkAutoTypeTable],
|
|
rehypeCodeOptions: {
|
|
lazy: true,
|
|
experimentalJSEngine: true,
|
|
langs: ["ts", "js", "html", "tsx", "mdx"],
|
|
themes: {
|
|
light: "light-plus",
|
|
dark: "dark-plus",
|
|
},
|
|
transformers: [
|
|
...(rehypeCodeDefaultOptions.transformers ?? []),
|
|
transformerTwoslash({
|
|
typesCache: createFileSystemTypesCache(),
|
|
}),
|
|
],
|
|
},
|
|
},
|
|
});
|