Files
shadcn-ui/apps/v4/source.config.ts
shadcn 02d5ce85ec feat: upgrade to Next.js 16 (#8615)
* 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>
2025-10-29 13:37:41 +04:00

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(),
// })
// ),
// }),
// },
})