175. Offline bundle splits port galleries into a lazy gallery part (2026-11-21)
- Decision.
site/bundle.pyshipsports.html(keeping its side-by-sideAccepted C++pane) andexemplars.htmlplus their#gallery-share-ref=payloads in a separate gzippedgallerypart (CAPS = {"compiler": 2_100_000, "docs": 500_000, "gallery": 150_000}), unpacked lazily bysite/offline.htmlon first visit to a gallery page.site/exemplars.pyemits#share=Try-it links only for the 12 featured side-by-side pairs (linking featured index rows to#ex-<id>instead of embedding full port source for every dream in the index table). - Why. Every new dream in
proto/ports/previously added ~1.2 KiB gzipped directly intodocs(pushingdocsto 611 KiB against the 620 KiB cap). Splittinggallerymakesdocsinvariant to port count (436 KiB vs 500 KiB cap) and cutsgalleryto 90 KiB (vs 150 KiB cap) with O(1) featured cards. - Reverse. Merge
gallery_pagesandgallery_sharesback intodocsinsite/bundle.py, removeensureGallery()insite/offline.html, and restore per-row_share_hrefinsite/exemplars.py.