Skip to content

docs: render hero.png from a script with sourced numbers - #144

Merged
DevMortimer merged 2 commits into
mainfrom
docs/hero-image
Sep 29, 2026
Merged

DevMortimer merged 2 commits into
mainfrom
docs/hero-image

Conversation

@DevMortimer

Copy link
Copy Markdown
Owner

The README banner (docs/hero.png) was a finished image with no generator, and several of its numbers no longer matched the field report it cites.

Change

  • scripts/render-hero.mjs (npm run hero) renders docs/hero.png from an HTML template with headless Chrome, like scripts/render-preview.mjs. Every number sits in one block at the top of the script, each with its source file. The intermediate docs/hero.html is git-ignored like docs/preview.html.
  • Numbers now match eval/reports/2026-09-24-field-usage/README.md: 759 sessions (2026-09-16 to 2026-09-24); 75 done-check nudges, 57 followed by a check (76%); of 65 holds with a known outcome, 40 safer routes, 24 approved, 1 declined; 349 rule steers over 36 rules.
  • Dropped two claims no file in the repo supports ("5 found a failure it had missed", "12 times it said tests pass"). The example texts in the loop and the bottom strip are now real ones from the docs and eval reports.
  • Fixed the install line to pi install npm:pi-warden, and updated the README alt text.
  • Version bump to 0.78.1.

Verification

  • npm run check: 1249 pass / 0 fail; typecheck and build clean.
  • The render was checked at full size and at half size for clipped, overflowing, or overlapping text.

The hero image had no script and numbers from an early field report. scripts/render-hero.mjs
renders it from docs/hero.html; every number sits in one block with its source line in the
2026-09-24 field report (759 sessions). Unsourced figures are dropped, the example texts come
from docs/examples.md, src/done.ts, and a bench report, and the install line is fixed.
@DevMortimer
DevMortimer merged commit 6ed2155 into main Sep 29, 2026
6 checks passed
@DevMortimer
DevMortimer deleted the docs/hero-image branch September 29, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant