mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
- 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
23 lines
672 B
TypeScript
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}`;
|
|
}
|