Compare commits

...

2 Commits

Author SHA1 Message Date
leehuwuj c087d0f052 remove twoslash cache to temporarily fix search issue 2025-04-21 16:34:09 +07:00
leehuwuj ef54ce11f2 fix creating cache on .next 2025-04-21 15:54:47 +07:00
+1 -6
View File
@@ -2,7 +2,6 @@ import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
import { fileGenerator, remarkDocGen, remarkInstall } from "fumadocs-docgen";
import { defineConfig, defineDocs } from "fumadocs-mdx/config";
import { transformerTwoslash } from "fumadocs-twoslash";
import { createFileSystemTypesCache } from "fumadocs-twoslash/cache-fs";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";
@@ -24,11 +23,7 @@ export default defineConfig({
},
transformers: [
...(rehypeCodeDefaultOptions.transformers ?? []),
transformerTwoslash({
typesCache: createFileSystemTypesCache({
dir: ".next/cache/twoslash",
}),
}),
transformerTwoslash(),
{
name: "transformers:remove-notation-escape",
code(hast) {