ci: test build on windows
Dev Deploy / Build Jar (ubuntu-latest) (push) Has been cancelled
Dev Deploy / Build Jar (windows-latest) (push) Has been cancelled
Dev Deploy / Docker Push (push) Has been cancelled
Dev Deploy / Deploy to Maven Central (push) Has been cancelled
Dev Deploy / Deploy to Northflank (push) Has been cancelled

This commit is contained in:
ReaJason
2025-12-24 23:37:49 +08:00
parent f585185b30
commit 17c171f1cd
5 changed files with 136 additions and 68 deletions
+5 -2
View File
@@ -1,4 +1,5 @@
import { glob } from "node:fs/promises";
import path from "node:path";
import { env } from "node:process";
import type { Config } from "@react-router/dev/config";
import { createGetUrl, getSlugs } from "fumadocs-core/source";
@@ -14,8 +15,10 @@ export default {
for (const path of getStaticPaths()) {
if (!excluded.includes(path)) paths.push(path);
}
for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) {
paths.push(getUrl(getSlugs(entry)));
const docsDir = path.resolve(process.cwd(), "content/docs");
for await (const entry of glob("**/*.mdx", { cwd: docsDir })) {
const normalizedEntry = entry.replace(/\\/g, "/");
paths.push(getUrl(getSlugs(normalizedEntry)));
}
return paths;
},