mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
[PR #1524] [MERGED] polish(tinytorch): sidebar + headers + flat tier cards + PDF milestone transitions #7390
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1524
Author: @profvjreddi
Created: 4/24/2026
Status: ✅ Merged
Merged: 4/24/2026
Merged by: @profvjreddi
Base:
dev← Head:polish/tinytorch-sidebar-headers-transitions📝 Commits (1)
44baf0cpolish(tinytorch): sidebar titles + HTML milestone removal + flat tier📊 Changes
9 files changed (+72 additions, -66 deletions)
View changed files
📝
shared/styles/partials/_sidebar.scss(+11 -0)📝
tinytorch/quarto/_quarto.yml(+14 -28)📝
tinytorch/quarto/assets/styles/style.scss(+28 -27)📝
tinytorch/quarto/milestones/01_perceptron.qmd(+2 -0)📝
tinytorch/quarto/milestones/04_cnn.qmd(+2 -0)📝
tinytorch/quarto/milestones/06_mlperf.qmd(+2 -0)📝
tinytorch/quarto/modules/08_training.qmd(+4 -2)📝
tinytorch/quarto/modules/13_transformers.qmd(+4 -6)📝
tinytorch/quarto/modules/19_benchmarking.qmd(+5 -3)📄 Description
Summary
Six independent polish items in one PR — they all landed on the same mental walkthrough of the TinyTorch site.
Details
1 + 2. Sidebar structure (`_quarto.yml`)
"Capstone Competition" → "Capstone"; "TITO CLI Reference" → "TITO CLI" (also in the navbar). All three milestone sections removed from the HTML sidebar because they interleaved between tiers and broke the Foundation → Architecture → Optimization → Capstone reading flow. Milestones stay reachable via the navbar's "Historical Milestones" entry; the PDF build has its own config (`pdf/_quarto.yml`) and is untouched.
3. Sidebar scroll chaining (`shared/styles/partials/_sidebar.scss`)
`overscroll-behavior: contain` on `#quarto-sidebar` prevents scrolls that hit the sidebar's top/bottom from chain-scrolling the body. Every Quarto site in the ecosystem picks this up — not just TinyTorch.
4. H2 L-shape (`tinytorch/quarto/assets/styles/style.scss`)
The shared `_headers.scss` partial decorates H2-H6 with a thick accent left-border plus a thin accent bottom line — an "L-shape" that works in the textbook's long-form prose. TinyTorch is framework documentation (code blocks, comparison grids, card layouts) and the decoration felt heavy. Scoped override strips `border-left`/`border-bottom`/`padding-left`/`padding-bottom` from H2-H6 on TinyTorch only — book/kits/labs/mlsysim keep the decoration.
5. Tier cards (`tinytorch/quarto/assets/styles/style.scss`)
`.tier-foundation` / `.tier-architecture` / `.tier-optimization` / `.tier-olympics` previously used four heavy gradient fills that fought the comparison grid on the same page (and tier-optimization read as specifically orange-heavy). Flattened to the same `#fafafa` neutral fill used by `.audience-card` and preface.qmd's cards, with a 4px colored left-border per tier carrying the identity color.
6. PDF milestone transitions (6 `.qmd` files)
Milestones appeared suddenly in the PDF after each tier. Added short transitions:
Files left untouched because their transitions were already good: `milestones/index.qmd`, `02_xor.qmd`, `03_mlp.qmd`, `05_transformer.qmd`.
7. Drive-by: corruption cleanup (`modules/13_transformers.qmd`)
Pre-existing orphan content at the end of the file (duplicate sentence + two orphan table rows `44B parameters |` and a duplicate Capstone row). Removed since we were already editing the file.
Verification (Playwright against local `quarto preview`)
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.