mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Scaffold cloned from apps/zen-docs. Port 3008. Content authored from the settled state of ~/work/lux/pulsar/main (README, EC README, bridge doc, extraction roadmaps, NIST-SUBMISSION, SUBMISSION, CHANGELOG, SECURITY, postmortem). Math rendered with KaTeX. Information architecture: intro -> getting-started -> protocol -> reference -> proofs -> security -> nist-mptc -> postmortem -> changelog. Build clean: pnpm --filter=pulsar-docs build && pnpm --filter=pulsar-docs dev.
24 lines
673 B
TypeScript
24 lines
673 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}`;
|
|
}
|