mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
- Add --color-fd-warning/idea/info/error/success: hsl(0,0%,96%) to all 7 apps
to override neutral.css @theme static amber (oklch 76.9% 0.188 70.08)
- base-docs, zap-docs, zt-docs: add full dark :root { color-scheme: dark; --color-fd-* }
block (were missing dark fumadocs variable overrides, defaulted to light)
- bot-docs, dev-docs, platform, visor: amber fix only (already had dark overrides)
- Fix base-docs sitemap.ts: add export const dynamic = 'force-static' for static export
32 lines
771 B
TypeScript
32 lines
771 B
TypeScript
import { source } from '@/lib/source';
|
|
import type { MetadataRoute } from 'next';
|
|
import { baseUrl } from '@/lib/metadata';
|
|
|
|
export const dynamic = 'force-static';
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const url = (path: string): string =>
|
|
new URL(path, baseUrl).toString();
|
|
|
|
return [
|
|
{
|
|
url: url('/'),
|
|
changeFrequency: 'monthly',
|
|
priority: 1,
|
|
},
|
|
{
|
|
url: url('/docs'),
|
|
changeFrequency: 'monthly',
|
|
priority: 0.8,
|
|
},
|
|
...source.getPages().map<MetadataRoute.Sitemap[number]>((page) => ({
|
|
url: url(page.url),
|
|
lastModified: page.data.lastModified
|
|
? new Date(page.data.lastModified)
|
|
: undefined,
|
|
changeFrequency: 'weekly',
|
|
priority: 0.5,
|
|
})),
|
|
];
|
|
}
|