Skip to content

Fix published diagram URLs under slides/diagrams - #10

Merged
lawrennd merged 4 commits into
gh-pagesfrom
fix/diagram-web-paths
Oct 27, 2026
Merged

lawrennd merged 4 commits into
gh-pagesfrom
fix/diagram-web-paths

Conversation

@lawrennd

Copy link
Copy Markdown
Contributor

Summary

  • Point diagramsdir at ../slides/diagrams and set diagramsurl so CIP-0010 does not fall back to /mlai/diagrams/.
  • Rebuild lecture HTML, slides, and notebooks with the corrected figure URLs.
  • Add extra-small slide font CSS next to the decks.

Test plan

  • Open a rebuilt lecture (e.g. slides/01-intro-probability.slides.html) and confirm diagram src is https://mlatcl.github.io/mlai/slides/diagrams/....
  • Confirm _lamd.yml has diagramsdir: ../slides/diagrams/ and diagramsurl set.
  • Spot-check that lecture 02 (02-the-data-science-process) rebuilt as well.

LaMD CIP-0010 was falling back to /mlai/diagrams/ because diagramsdir
pointed at a shared library outside the repo. Point diagramsdir at the
in-repo tree and set diagramsurl so rebuilt lectures keep working SVGs.
This lecture was part of the same diagram-path fix but was left out of
the previous commit to avoid the stray hyphenated junk copies.
Keep published HTML under slides/diagrams via diagramswebpath so CIP-0010
does not fall back to /<course>/diagrams/.
The names are easy to mix: diagramsdir is the filesystem copy source,
diagramswebpath is the published URL path, and slidesdir is where HTML
and copied figures land.
@lawrennd
lawrennd merged commit 5853cca into gh-pages Oct 27, 2026
1 check passed
@lawrennd
lawrennd deleted the fix/diagram-web-paths branch October 27, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant