refactor: simplify documentation structure by removing multi-language i18n support and unused components

This commit is contained in:
Mathis HERRIOT
2026-01-05 10:16:29 +01:00
parent 91179199f7
commit 4d776c5c16
27 changed files with 57 additions and 445 deletions

View File

@@ -1,22 +1,9 @@
import defaultMdxComponents from "fumadocs-ui/mdx";
import type { MDXComponents } from "mdx/types";
import { Mermaid } from "@/components/mdx/mermaid";
export function getMDXComponents(components?: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
...components,
pre: ({ children, ...props }: any) => {
if (
children &&
typeof children === "object" &&
"type" in children &&
(children as any).type === "code" &&
(children as any).props.className === "language-mermaid"
) {
return <Mermaid chart={(children as any).props.children} />;
}
return <defaultMdxComponents.pre {...props}>{children}</defaultMdxComponents.pre>;
},
};
}