Skip to content

Commit 008a96c

Browse files
CopilotNonSwag
andcommitted
Initial exploration of the docs repository
Co-authored-by: NonSwag <[email protected]>
1 parent d8abfce commit 008a96c

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

source.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from "fumadocs-mdx/config";
2-
import { transformerCommandColor } from "./src/lib/command-transformer";
1+
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from "fumadocs-mdx/config"
2+
import { transformerCommandColor } from "./src/lib/command-transformer"
33

44
// You can customise Zod schemas for frontmatter and `meta.json` here
55
// see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
@@ -10,7 +10,7 @@ export const docs = defineDocs({
1010
meta: {
1111
schema: metaSchema,
1212
},
13-
});
13+
})
1414

1515
export default defineConfig({
1616
mdxOptions: {
@@ -20,11 +20,9 @@ export default defineConfig({
2020
dark: "github-dark",
2121
},
2222
langAlias: {
23-
command: 'text',
23+
command: "text",
2424
},
25-
transformers: [
26-
transformerCommandColor(),
27-
],
25+
transformers: [transformerCommandColor()],
2826
},
2927
},
30-
});
28+
})

src/app/sitemap.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
import type { MetadataRoute } from 'next';
2-
import { source } from '@/lib/source';
1+
import type { MetadataRoute } from "next"
2+
import { source } from "@/lib/source"
33

4-
export const revalidate = false;
4+
export const revalidate = false
55

66
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
7-
const url = (path: string): string => new URL(path, process.env.NEXT_PUBLIC_BASE_URL).toString();
7+
const url = (path: string): string => new URL(path, process.env.NEXT_PUBLIC_BASE_URL).toString()
88

99
return [
1010
{
11-
url: url('/'),
12-
changeFrequency: 'monthly',
11+
url: url("/"),
12+
changeFrequency: "monthly",
1313
priority: 1,
1414
},
1515
{
16-
url: url('/docs'),
17-
changeFrequency: 'monthly',
16+
url: url("/docs"),
17+
changeFrequency: "monthly",
1818
priority: 0.8,
1919
},
2020
...(await Promise.all(
2121
source.getPages().map(async (page) => {
2222
return {
2323
url: url(page.url),
2424
lastModified: page.data.lastModified ? new Date(page.data.lastModified) : undefined,
25-
changeFrequency: 'weekly',
25+
changeFrequency: "weekly",
2626
priority: 0.5,
27-
} as MetadataRoute.Sitemap[number];
27+
} as MetadataRoute.Sitemap[number]
2828
}),
2929
)),
30-
];
31-
}
30+
]
31+
}

0 commit comments

Comments
 (0)