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) { const segments = [...page.slugs, 'image.png']; return { segments, url: `/og/docs/${segments.join('/')}`, }; } export async function getLLMText(page: InferPageType) { const processed = await page.data.getText('processed'); return `# ${page.data.title}\n\n${processed}`; }