mirror of
https://github.com/raphaelsalaja/userinterface-wiki.git
synced 2026-09-14 20:06:29 +08:00
b0c89649b1
* feat: add AnimatePresence article with interactive playground * feat: add playground * feat: ƒix basic demo * feat: ap article start * chore: cleanup * chore: pre-commit * feat: update article * refactor: improve code formatting and readability in demo and script files * refactor: enhance formatting for improved readability in slideshow demo * chore: generate open graph rather than dynamically * chore: add @clack/prompts dependency and enhance icon/image generation scripts with improved logging * refactor: generators * chore: cleanup * feat: refactor generator * feat: second draft * docs: final draft * chore: final draft again * chore: update publication date and enhance text-to-speech generator with alignment data
35 lines
723 B
TypeScript
35 lines
723 B
TypeScript
import {
|
|
defineConfig,
|
|
defineDocs,
|
|
frontmatterSchema,
|
|
} from "fumadocs-mdx/config";
|
|
import { z } from "zod";
|
|
|
|
export const docs = defineDocs({
|
|
dir: "content",
|
|
docs: {
|
|
schema: frontmatterSchema.extend({
|
|
date: z.iso.date(),
|
|
description: z.string(),
|
|
author: z.string(),
|
|
coauthors: z.array(z.string()).optional(),
|
|
icon: z.enum(["writing", "code", "motion"]).optional().default("writing"),
|
|
}),
|
|
},
|
|
meta: {},
|
|
});
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
providerImportSource: "@/mdx-components",
|
|
remarkPlugins: [],
|
|
rehypePlugins: [],
|
|
rehypeCodeOptions: {
|
|
themes: {
|
|
light: "github-light",
|
|
dark: "github-dark",
|
|
},
|
|
},
|
|
},
|
|
});
|