collectUnrenderedAlerts
Collects every GitHub alert that rendered as a plain blockquote rather than as a Starlight aside.
The conversion is a markdown-processor plugin, and when a processor switch leaves it unregistered nothing fails: the site builds and every alert shows its literal [!TYPE] marker. Scanning the output is the check that holds whichever plugin performs the conversion.
Import:
import { collectUnrenderedAlerts } from '@mnaoumov/typescript-dev-toolkit/docs-site/unrendered-alerts';Signature:
function collectUnrenderedAlerts(pages: readonly DocumentationPage[]): UnrenderedAlert[]Parameters:
| Parameter | Type | Description |
|---|---|---|
pages |
readonly DocumentationPage[] | The built pages. |
Returns: UnrenderedAlert[] — The unrendered alerts, in page order.