Improvements from user review of the punk::ansi trial page:
- command index <nav> at page top (doctools-style jump list); hook to
display @package info above it when specs carry package_info (guarded -
key absent in older punk::args spec dicts)
- multiform commands: punk::args::usage renders all form synopses but only
the default form arg table (terminal UX expects i -form N) - the page now
adds a per-form ARG TABLE for each form that has arguments, trimmed at the
table-header separator so the command/description/synopsis panel is not
repeated per form (renderspace lines are colour-self-contained, so slicing
at a line boundary is safe); argument-less forms are skipped
- pre backdrop is now true black (page body stays dark grey):
overtype::renderspace overlay output emits explicit SGR 40 and example
helpers treat default background as the terminal backdrop - on black they
blend as in a terminal (proper fix = default-colour semantics, goal)
- row pitch line-height:17px (integer, just under the 17.85px inline
background height at font-size 15.36px) - the fractional 1.15em pitch put
row boundaries at fractional positions and showed periodic hairline gaps
through solid-bg runs
- explicit package require punk::lib (tstr placeholder resolution uses
punk::lib::undent; previously loaded only by transitive luck when usage
ran before get_spec)
Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com
append html "pre.punkterm{font-family:$fontstack;line-height:1.15;font-size:15.36px;overflow-x:auto;padding:8px;background:$ansi2html::default_bg;font-variant-ligatures:none;}\n"
append html "pre.punkterm{font-family:$fontstack;line-height:17px;font-size:15.36px;overflow-x:auto;padding:8px;background:$ansi2html::default_bg;font-variant-ligatures:none;}\n"
append html "hr{border:0;border-top:1pxsolid#444;}\n"
append html "</style></head><body>\n"
append html "<h1>$pkgname$pkgversion</h1>\n"
append html "<p>Commandreferencegeneratedfrompunk::argsdefinitions(terminal-faithfulrendering).</p>\n"