Credibility pass over the Green Man generator

Turn audit.py into a run() function and drop audit_run.py, which only
existed to import it quietly. Remove unused parameters, keys, helpers
and imports from draw.py, manifest.py and stl_build.py, and the source
file names in stl_build.FILES that pointed at nothing. Keep the brow
strip's taper and knob positions in geom.py only. Correct comments and
docstrings that disagreed with the code, and the README's claim about
counts.

The page changes only in markup: no stray spaces in class attributes,
and three CSS declarations that did nothing are gone. Guide HTML,
templates and print files are byte-identical apart from that.

Credibility pass over a7c04e5..HEAD; the next one can scope from here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Eric WagonerandClaude Fable 5.2 committed 2026-11-10 19:14:03 -05:00
1 parent b86153a9fd
commit f2bb87caeb
15 files changed
+148 -151

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
"""Render an HTML file to PNG (for checking) or PDF (for the kit) with the pre-installed Chromium."""
"""Render an HTML file to PNG (for checking) or PDF (for the kit) with Playwright's Chromium, or Google Chrome if Playwright has no browser of its own."""
import sys, asyncio
from playwright.async_api import async_playwright
async def go(src, out, width=1260, scale=1, footer=None):
async def go(src, out, width=1260, footer=None):
async with async_playwright() as p:
try: b = await p.chromium.launch()
except Exception: b = await p.chromium.launch(channel='chrome') # no Playwright browser installed: use Google Chrome
pg = await b.new_page(viewport={'width': width, 'height': 800}, device_scale_factor=scale)
pg = await b.new_page(viewport={'width': width, 'height': 800})
await pg.goto('file://' + src); await pg.evaluate('document.fonts.ready'); await pg.wait_for_timeout(300)
if out.endswith('.pdf'):
kw = dict(display_header_footer=True, header_template='<span></span>', footer_template=