Files
OpenSpec/website/source.config.ts
T
Clay Good 4e4c9e1ffd docs(workflows): visualize the OpenSpec lifecycle (#1507)
* docs(workflows): add lifecycle diagrams

* docs(workflows): clarify optional archive paths

* docs(workflows): correct lifecycle diagrams

* docs(website): render Mermaid diagrams

* fix(website): preserve Mermaid label text
2026-08-04 18:09:08 +00:00

31 lines
958 B
TypeScript

import { defineConfig, defineDocs } from 'fumadocs-mdx/config';
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
import { remarkMdxMermaid } from 'fumadocs-core/mdx-plugins';
import { z } from 'zod';
// You can customize Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections
export const docs = defineDocs({
dir: 'content/docs',
docs: {
// `githubSource` is injected by scripts/sync-docs.mjs and points at the
// canonical `docs/*.md` this page was generated from, so the "edit this
// page" link opens the real source rather than the generated mirror.
schema: pageSchema.extend({ githubSource: z.string().optional() }),
postprocess: {
includeProcessedMarkdown: {
mdxAsPlaceholder: ['Mermaid'],
},
},
},
meta: {
schema: metaSchema,
},
});
export default defineConfig({
mdxOptions: {
remarkPlugins: [remarkMdxMermaid],
},
});