Files
zooqueenandHanzo Dev bebec06427 docs: complete model-family coverage (all 95 models) + make the site buildable
- content/docs/models/{chat,coder,vision,omni,embeddings,rerankers,safety,
  image,video,audio,3d,agents,world,specialty}.mdx — one page per family with
  accurate spec tables (params/context) and weights + paper links for every
  one of the 95 Zen models (generated from the verified catalog, link-checked).
- meta.json orders the families; drop redundant single-model pages.
- Buildability fixes: next 16, @hanzo/docs-base-ui dep, collections/server
  import via .docs outDir, toSource(), pnpm overrides; monochrome ensō theme.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-08 13:49:26 -07:00

25 lines
825 B
TypeScript

import { docs } from 'collections/server';
import { type InferPageType, loader } from '@hanzo/docs-core/source';
import { lucideIconsPlugin } from '@hanzo/docs-core/source/lucide-icons';
export const source = loader({
baseUrl: '/docs',
// Published @hanzo/docs-mdx runtime still exposes toSource(); becomes
// toDocsSource() once the brand-neutral rename ships from hanzoai/docs.
source: docs.toSource(),
plugins: [lucideIconsPlugin()],
});
export function getPageImage(page: InferPageType<typeof source>) {
const segments = [...page.slugs, 'image.png'];
return {
segments,
url: `/og/docs/${segments.join('/')}`,
};
}
export async function getLLMText(page: InferPageType<typeof source>) {
const processed = await page.data.getText('processed');
return `# ${page.data.title}\n\n${processed}`;
}