mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-11-03 14:04:55 +08:00
fix(v1-en): repair missing figures and section pages in English edition (#506)
- Remap 129 broken image paths in v1/en_chapters to the files that exist under v1/img (old chapter numbering, renamed files, and .pdf figures that browsers cannot display inline). - Restore ch07/7.5/distribute.png and ch08/distillation.png, which were dropped in #499 because the `dist*` .gitignore rule matched them; narrow the rule to `/dist/`. - Fix the English toc blocks: chapter entries now point at real files and the root toc has part headings, so section pages are built again (previously only chapter index pages were generated). - Add tests/test_image_references.py to CI to catch missing or unrenderable figure references. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1
.github/workflows/update_docs.yml
vendored
1
.github/workflows/update_docs.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
||||
python3 -m unittest discover -s tests -p 'test_prepare_mdbook_zh.py'
|
||||
python3 -m unittest discover -s tests -p 'test_assemble_docs_publish_tree.py'
|
||||
python3 -m unittest discover -s tests -p 'test_ensure_book_resources.py'
|
||||
python3 -m unittest discover -s tests -p 'test_image_references.py'
|
||||
|
||||
- name: Build v2 (EN + ZH) with mdBook
|
||||
run: bash build_mdbook_v2.sh
|
||||
|
||||
Reference in New Issue
Block a user