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:
1 parent
b86153a9fd
commit
f2bb87caeb
15 files changed
+148
-151
No files matched your search
@@ -20,7 +20,7 @@ After a build, review `git diff` in `../greenman`, then run `../deploy` from the
|
||||
## What a build does, in order
|
||||
|
||||
1. `stl_build.py` writes the eight print files into `out/stl` and tests each one: watertight, flat on the bed, no layer starting in mid-air. The three files in `stl_src` that failed on the printer are run through the same test as a control and must fail it.
|
||||
2. `audit.py` walks the assembly in step order and checks each step's text against where the parts actually sit.
|
||||
2. `audit.py` runs the manifest's own layout checks (`manifest.validate()`), then walks the assembly in step order and checks each step's text against where the parts actually sit.
|
||||
3. `build_templates.py` makes the 1:1 cutting templates (4 pages).
|
||||
4. `build_guides.py` makes the build guide and the painting guide as PDFs.
|
||||
5. `build_web.py` makes the web page, with its head, share tags and the links back to the site index.
|
||||
@@ -37,10 +37,11 @@ After a build, review `git diff` in `../greenman`, then run `../deploy` from the
|
||||
| Template page layout | `build_templates.py` |
|
||||
| Web page styling, title, description, share tags | `build_web.py` |
|
||||
| PDF styling | `build_guides.py` |
|
||||
| How HTML is rendered to PDF | `shot.py` |
|
||||
| Generated print files (brow strip, acorns) | `stl_build.py` |
|
||||
| README inside the kit zip | `assets/kit_README.txt` |
|
||||
|
||||
`manifest.py` is the single source for parts and steps. The templates, both guides, the web page and the print set all read from it, so a count changed there changes everywhere.
|
||||
`manifest.py` is the single source for parts and steps. The templates, both guides, the web page and the print set all take their tables, counts and step order from it. Some sentences spell a number out by hand (in `content.py`, the template notes in `build_templates.py`, the download blurbs in `build_web.py` and `assets/kit_README.txt`), so reread those after changing a count.
|
||||
|
||||
## Inputs kept here
|
||||
|
||||
|
||||
Reference in new issue
Block a user