mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-24 16:01:52 +08:00
style: fmt code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user