Files
zeekay 5815ee6cf7 feat: add Hanzo Insights landing page + docs app
- New insights-docs app at apps/insights-docs/ (port 3006, static export)
- 712-line landing page with 8 sections: hero, products, all 45 features,
  why self-host, tech stack, quick deploy, ecosystem, CTA
- 16 MDX content pages: getting-started, products, API, self-hosting, privacy
- Deploy workflow: .github/workflows/deploy-insights-docs.yml (Cloudflare Pages)
- Analytics tracking UUID: ebdee691 (analytics.hanzo.ai)
- Build verified: 9 routes, static export, 20s build time
2026-02-28 12:35:10 -08:00

23 lines
672 B
TypeScript

import { docs } from '@/docs/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',
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}`;
}