Files
zeekay db79428a77 feat: add dev-docs app for Hanzo Dev CLI documentation
- New Fumadocs-based docs app at apps/dev-docs/ (port 3003)
- Ported 16+ markdown docs from hanzoai/dev as MDX with navigation
- Landing page with terminal preview, features grid, quick start
- 28 docs pages: getting-started, usage, config, integrations, reference
- Static export to out/ with shiki code highlighting
- CI: add GITHUB_PAGES env, NODE_OPTIONS, SKIP_DTS for faster builds
2026-02-08 23:04:07 -08:00

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,
})),
];
}