mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 06:07:17 -05:00
[GH-ISSUE #1795] [Bug] MLSysBook Vol. I: Clicking on figure to enlarge does not work #35272
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?
Originally created by @asgalon on GitHub (May 22, 2026).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1795
Area
Book — Volume I
Location
ML Workflow
Description
Clicking on a figure does not work:
Opening the link in a new tab shows:
Expected Behavior
Should probably show an enlarged version of the illustration?
Environment (TinyTorch bugs only)
No response
@asgalon commented on GitHub (May 22, 2026):
Nice error message btw :-)
@asgalon commented on GitHub (May 22, 2026):
The URL really used for the download in the page is:
3b022a3ffa.svgwhile the a link url is:
3b022a3ffa.svgso the ml_workflow_files/mediabag path element is missing.
@profvjreddi commented on GitHub (May 25, 2026):
Root cause identified and fixed. Quarto's lightbox feature generates a wrong
<a href>for images stored in the mediabag directory — the href uses the bare hash filename (e.g.,3b022a3f...svg) while the actual file lives atchapter_files/mediabag/3b022a3f...svg. The<img src>inside the anchor is correct; only the lightbox click-to-enlarge link was broken.Fix: Added a
fix_lightbox_mediabag.pypost-render script that rewrites each lightbox<a href>to match the child<img src>path. Wired into both vol1 and vol2 HTML build configs.Impact: Fixes 210 broken figure-click links across 30 chapter HTML files in both volumes. Will be live on next deploy.
Thanks for the report @asgalon!