feat: upgrade fumadocs

This commit is contained in:
ReaJason
2026-08-30 19:08:33 +08:00
parent b5d766649e
commit 2b1d6cfd2a
11 changed files with 489 additions and 922 deletions
+1 -10
View File
@@ -1,17 +1,8 @@
import { stopwords as mandarinStopwords } from "@orama/stopwords/mandarin";
import { createTokenizer } from "@orama/tokenizers/mandarin";
import { createFromSource } from "fumadocs-core/search/server";
import { source } from "@/lib/source";
const server = createFromSource(source, {
components: {
tokenizer: createTokenizer({
language: "mandarin",
stopWords: mandarinStopwords,
}),
},
});
const server = createFromSource(source);
export async function loader() {
return server.staticGET();