mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-16 04:11:34 +00:00
* feat: upgrade to Next.js 16 * chore: deps * fix * fix * fix * fix: workaround zod 4 for now * fix * fix: copy button * fix: update apps/v4/hooks/use-is-mac.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix * fix: remove --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
40 lines
861 B
TypeScript
40 lines
861 B
TypeScript
import { defineConfig, defineDocs } from "fumadocs-mdx/config"
|
|
import rehypePrettyCode from "rehype-pretty-code"
|
|
|
|
import { transformers } from "@/lib/highlight-code"
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
rehypePlugins: (plugins) => {
|
|
plugins.shift()
|
|
plugins.push([
|
|
rehypePrettyCode as any,
|
|
{
|
|
theme: {
|
|
dark: "github-dark",
|
|
light: "github-light-default",
|
|
},
|
|
transformers,
|
|
},
|
|
])
|
|
|
|
return plugins
|
|
},
|
|
},
|
|
})
|
|
|
|
export const docs = defineDocs({
|
|
dir: "content/docs",
|
|
// TODO: Fix this when we upgrade to zod v4.
|
|
// docs: {
|
|
// schema: frontmatterSchema.extend({
|
|
// links: z.optional(
|
|
// z.object({
|
|
// doc: z.string().optional(),
|
|
// api: z.string().optional(),
|
|
// })
|
|
// ),
|
|
// }),
|
|
// },
|
|
})
|