Files
engine/docs/astro.config.mjs
zeekayandHanzo Dev 51b1849ba1 docs: every throughput figure renders from the run that produced it
Six claim pages, one per measurement, each fetching its own rows from
/v1/benchmark/throughput at read time and printing the median with its
range, the repetition count, and the engine build, flags, host and date
that stand behind it. A row whose quality checks failed renders
"withheld" in place of a rate, so a fast run that was serving badly
cannot be quoted.

Drops the figures that had no run behind them: the llama.cpp comparison
table in the ROCm guide, the tok/s cards and the "2-4x" feature stats on
the marketing page, the backend table in gpu/README, and MATFORMER's
layer-count speed estimate.

Claims are reached from the footer of every page rather than the sidebar,
so one is always a hop away and never quoted inline.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 02:51:11 -07:00

50 lines
1.5 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// Deployed at https://hanzoai.github.io/engine/
// Adjust `site` + `base` if we move to docs.hanzo.
export default defineConfig({
site: 'https://hanzoai.github.io',
base: '/hanzo',
integrations: [
starlight({
title: 'hanzo',
description: 'Fast, flexible LLM inference engine written in Rust.',
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/hanzoai/engine' },
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/SZrecqK8qw' },
],
editLink: {
baseUrl: 'https://github.com/hanzoai/engine/edit/master/docs/',
},
sidebar: [
{
label: 'Start here',
slug: 'start-here',
},
{
label: 'Tutorials',
items: [{ autogenerate: { directory: 'tutorials' } }],
},
{
label: 'Guides',
items: [{ autogenerate: { directory: 'guides' } }],
},
{
label: 'Reference',
items: [{ autogenerate: { directory: 'reference' } }],
},
{
label: 'Explanation',
items: [{ autogenerate: { directory: 'explanation' } }],
},
],
components: {
// Measured claims are entry points in the footer, not body copy.
Footer: './src/components/Footer.astro',
},
customCss: ['./src/styles/custom.css'],
}),
],
});