mirror of
https://github.com/zenlm/docs.git
synced 2026-10-30 15:00:08 +00:00
- 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]>
25 lines
825 B
TypeScript
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}`;
|
|
}
|