Skip to content

Add missing font file and GPU admonition for build#23

Merged
mmcky merged 1 commit intomainfrom
fix/add-missing-font-and-admonition
Apr 11, 2026
Merged

Add missing font file and GPU admonition for build#23
mmcky merged 1 commit intomainfrom
fix/add-missing-font-and-admonition

Conversation

@mmcky
Copy link
Copy Markdown
Contributor

@mmcky mmcky commented Apr 11, 2026

Summary

Fixes build failures from the cache workflow by adding two missing files.

Changes

  • lectures/_fonts/SourceHanSerifSC-SemiBold.otf — Chinese font file (Source Han Serif SC) required by 18 lecture files for rendering CJK characters in matplotlib plots. Sourced from lecture-intro.zh-cn.
  • lectures/_admonition/gpu.md — Translated GPU warning admonition included by jax_intro.md and numpy_vs_numba_vs_jax.md. Matches the upstream lecture-python-programming file.

Context

The translation process added # i18n font-loading code to all lectures using matplotlib, referencing _fonts/SourceHanSerifSC-SemiBold.otf, but the font file was never committed. Similarly, _admonition/gpu.md exists in the upstream repo but was not included in the translation repo.

- Add SourceHanSerifSC-SemiBold.otf for Chinese character rendering in matplotlib plots (from lecture-intro.zh-cn)
- Add lectures/_admonition/gpu.md (translated GPU warning for jax_intro and numpy_vs_numba_vs_jax)
Copilot AI review requested due to automatic review settings April 11, 2026 05:50
@mmcky mmcky merged commit e002d4f into main Apr 11, 2026
3 of 4 checks passed
@mmcky mmcky deleted the fix/add-missing-font-and-admonition branch April 11, 2026 05:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing lecture build assets to fix cache-workflow build failures caused by translated lectures referencing files that weren’t committed.

Changes:

  • Add the missing CJK matplotlib font asset (SourceHanSerifSC-SemiBold.otf) referenced across multiple lectures.
  • Add the missing GPU warning admonition include (lectures/_admonition/gpu.md) used by JAX-related lectures.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
lectures/_fonts/SourceHanSerifSC-SemiBold.otf Adds the missing Source Han Serif SC font file required by matplotlib font-loading in several translated lectures.
lectures/_admonition/gpu.md Adds the translated GPU warning admonition included by JAX-related lecture pages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants