feat(site): inline PNG previews of the .report() fiches via a ReportPreview component (#239)
Rasterize the first page of every example .report() PDF to a committed PNG
preview so the documentation shows the fiche inline, not only as a download.
scripts/generate_reports.py now writes a <name>.png next to each <name>.pdf
(pypdfium2, no system Poppler; oxipng level-6 lossless recompress, matching the
figures pipeline). Like the PDFs, the previews are not byte-checked in CI (the
embedded vector plot drifts ~1 ULP across CPUs); tests/test_generate_reports.py
adds a check that a valid PNG is produced for every example.
ReportPreview.astro embeds a preview as a clickable thumbnail that opens the
PDF, mirroring the Video convention: a short accessible name (aria-label) plus a
hidden long description (aria-describedby), a decorative image, and a visible
localized download link. The field guide (EN/ES) and the GitHub docs now show
both ISO 717 fiches inline with a documented ReportMetadata field table.
authored by
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.