docs: render hero.png from a script with sourced numbers - #144
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) rendersdocs/hero.pngfrom an HTML template with headless Chrome, likescripts/render-preview.mjs. Every number sits in one block at the top of the script, each with its source file. The intermediatedocs/hero.htmlis git-ignored likedocs/preview.html.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.pi install npm:pi-warden, and updated the README alt text.Verification
npm run check: 1249 pass / 0 fail; typecheck and build clean.