/
githubmirror
/
ui
Обзор
Документация
Войти
/
githubmirror
/
ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/v4/source.config.ts
39 строк
849 B
shadcn
feat: typeset (#11133)
10 июл 2026, 18:10
Не верифицирован
10 июл 2026, 18:10
3cdaa6e
Код
Авторство
О чём код?
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, { theme: { dark: "vesper", 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(), // }) // ), // }), // }, })