mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0dfb539d2d
* swap docs * fix build error --------- Co-authored-by: Fuma Nama <fuma-nama@noreply.com>
41 lines
980 B
TypeScript
41 lines
980 B
TypeScript
import { defineDocs, defineConfig } from "fumadocs-mdx/config";
|
|
|
|
import {
|
|
fileGenerator,
|
|
remarkDocGen,
|
|
remarkInstall,
|
|
typescriptGenerator,
|
|
} from "fumadocs-docgen";
|
|
import { rehypeCode } from "fumadocs-core/mdx-plugins";
|
|
import {
|
|
transformerNotationDiff,
|
|
transformerNotationHighlight,
|
|
transformerNotationWordHighlight,
|
|
// ...
|
|
} from "@shikijs/transformers";
|
|
import { remarkMermaid } from '@theguild/remark-mermaid'
|
|
|
|
export const { docs, meta } = defineDocs();
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
rehypePlugins: [
|
|
[
|
|
rehypeCode,
|
|
{
|
|
transformers: [
|
|
transformerNotationDiff(),
|
|
transformerNotationHighlight(),
|
|
transformerNotationWordHighlight(),
|
|
],
|
|
},
|
|
],
|
|
],
|
|
remarkPlugins: [
|
|
remarkMermaid,
|
|
[remarkInstall, { persist: { id: "package-manager" } }],
|
|
[remarkDocGen, { generators: [typescriptGenerator(), fileGenerator()] }],
|
|
],
|
|
},
|
|
});
|