mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 06:31:49 +00:00
Fumadocs-based docs site migrated from OpenClaw (285 MDX files, 15 categories). Rebranded to Hanzo Bot with red theme, landing page, CI workflow. - 261 static pages (install, concepts, CLI, channels, providers, tools, gateway, etc.) - Mintlify compatibility components (CardGroup, Card, Info, Warning, Note) - CI: deploy-bot-docs.yml builds + pushes to GHCR + deploys to K8s - Static export via nginx:alpine Docker image - Deploys to docs.hanzo.bot
31 lines
736 B
TypeScript
31 lines
736 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
import { source } from '@/lib/source';
|
|
import { baseUrl } from '@/lib/metadata';
|
|
|
|
export const dynamic = 'force-static';
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const url = (path: string) => new URL(path, baseUrl).toString();
|
|
|
|
return [
|
|
{
|
|
url: url('/'),
|
|
changeFrequency: 'monthly',
|
|
priority: 1,
|
|
},
|
|
{
|
|
url: url('/docs'),
|
|
changeFrequency: 'weekly',
|
|
priority: 0.9,
|
|
},
|
|
...source.getPages().map((page) => ({
|
|
url: url(page.url),
|
|
lastModified: page.data.lastModified
|
|
? new Date(page.data.lastModified)
|
|
: undefined,
|
|
changeFrequency: 'weekly' as const,
|
|
priority: 0.8,
|
|
})),
|
|
];
|
|
}
|