mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-03-22 21:11:42 +08:00
mdbook runs preprocessor commands from the book root directory (where book.toml lives). The v1/v2 book.toml files had incorrect relative paths to the preprocessor scripts, causing them to silently fail and leaving raw rst directives (.. raw:: html, toc blocks) unprocessed. Fix by using correct relative paths in book.toml (../tools/ for top-level books, ../../../tools/ for books/zh/) and changing build scripts to cd into book directories before running mdbook build. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>