mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
Adds a small amber pill below the existing "A Build-It-Yourself Companion to..." subtitle showing "🔥 TinyTorch v0.1.10 →", linked to the GitHub Releases page filtered for tinytorch tags. Why: the previous sidebar had no persistent version indicator, and the announcement-bar approach was rejected (see config/announcement.yml header note: "Release news belongs in a changelog, not in the always- visible nav bar"). The sidebar subtitle area is the natural home for this kind of meta-info — sticky on desktop, not competing with content, and follows the existing JS injection pattern. Design choices: - "🔥 TinyTorch" prefix + visual divider above the pill prevent the reader from parsing "v0.1.10" as the textbook's version (which would be wrong — the textbook is versioned by Volume). - Amber border + amber text + faint amber background match the TinyTorch brand color used throughout the announcement bar and accent system. - target="_blank" + rel="noopener" — the chip leaves the docs site, so external-link semantics apply. - !important on color rules because Quarto's link styles otherwise win at higher specificity (matches the existing `.sidebar-subtitle a:hover` pattern in this file). Version source: hardcoded as "v0.1.10" with a TINYTORCH_VERSION_CHIP sed marker. The tinytorch-publish-live workflow's UPDATE_VERSION step already syncs 6 files (pyproject.toml, settings.ini, install.sh, announcement, README badge, init); adding this file to that step is a follow-up. For now, manual updates on each release. Verified in Playwright on index + tito/milestones, light + dark mode. Computed color rgb(212, 116, 12) light / rgb(245, 158, 11) dark; href points to releases?q=tinytorch as intended.