style: fmt code

This commit is contained in:
ReaJason
2026-04-26 20:39:53 +08:00
parent d9733e1512
commit a8fb030a60
150 changed files with 948 additions and 1522 deletions
+8 -7
View File
@@ -1,9 +1,10 @@
import type { Config } from '@react-router/dev/config';
import { glob } from 'node:fs/promises';
import { createGetUrl, getSlugs } from 'fumadocs-core/source';
import type { Config } from "@react-router/dev/config";
import { createGetUrl, getSlugs } from "fumadocs-core/source";
import { glob } from "node:fs/promises";
import { env } from "node:process";
const getUrl = createGetUrl('/docs');
const getUrl = createGetUrl("/docs");
export default {
basename: env.VITE_APP_BASE_PATH,
@@ -19,11 +20,11 @@ export default {
if (!excluded.includes(path)) paths.push(path);
}
for await (const entry of glob('**/*.mdx', { cwd: 'content/docs' })) {
for await (const entry of glob("**/*.mdx", { cwd: "content/docs" })) {
const slugs = getSlugs(entry);
paths.push(getUrl(slugs), `/llms.mdx/docs/${[...slugs, 'content.md'].join('/')}`);
paths.push(getUrl(slugs), `/llms.mdx/docs/${[...slugs, "content.md"].join("/")}`);
}
return paths;
},
} satisfies Config;
} satisfies Config;