createPageSummaryReader #
Reads route summaries without running the Markdown pipeline, so listing the site never renders pages: no Shiki, no Twoslash, no MathJax and no plugin pageData() handler runs here.
Usage #
TypeScript
import { createPageSummaryReader } from 'kawapress/generator'
const reader = createPageSummaryReader()
const summary = reader.read('# Hello', '/site/a.md')
Returns A reader that keeps the summaries it has read.
Full type signature
TypeScript
function createPageSummaryReader(): PageSummaryReader

Comments