Files
shadcn-ui/apps/v4/source.config.ts
shadcn a941287411 deps(shadcn): bump all dependencies (#8004)
* deps(shadcn): bump all dependencies

* chore: pin deps for fumadocs
2025-08-11 20:21:40 +04:00

46 lines
937 B
TypeScript

import {
defineConfig,
defineDocs,
frontmatterSchema,
} from "fumadocs-mdx/config"
import rehypePrettyCode from "rehype-pretty-code"
import { z } from "zod"
import { transformers } from "@/lib/highlight-code"
export default defineConfig({
mdxOptions: {
rehypePlugins: (plugins) => {
plugins.shift()
plugins.push([
// TODO: fix the type.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
rehypePrettyCode as any,
{
theme: {
dark: "github-dark",
light: "github-light-default",
},
transformers,
},
])
return plugins
},
},
})
export const docs = defineDocs({
dir: "content/docs",
docs: {
schema: frontmatterSchema.extend({
links: z
.object({
doc: z.string().optional(),
api: z.string().optional(),
})
.optional(),
}),
},
})