pageOf
uses tcmts.cli.pages.definitionPage, which uses Buffer
A definition's page data, its doc's examples shown as written: a page runs no code.
import { definitionPage } from "#codebase/tcmts/cli/pages"; import type { Share } from "#codebase/tcmts/share"; export function pageOf(s: Share, hash: string) { return definitionPage(s.cb, hash, s.cache.placement(s.cb), { viewUri: () => "", evaluate: false }) as | (NonNullable<ReturnType<typeof definitionPage>> & { place?: string; why?: string; docMarkdown?: string; sourceHtml?: string; image?: string; test?: string; signature?: string; format?: string }) | undefined; }