Files
openmlsys-zh/v2/book.toml
Yeqi Huang ea4d0d178e fix: fix preprocessor paths for v1/v2 mdbook builds (#495)
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>
2026-03-12 14:01:24 +00:00

20 lines
556 B
TOML

[book]
authors = ["OpenMLSys Contributors"]
language = "en"
src = "en_chapters"
title = "Machine Learning Systems: Design and Implementation (2nd Edition)"
[build]
build-dir = "../.mdbook-v2/book"
create-missing = false
[preprocessor.openmlsys]
command = "python3 ../tools/mdbook_preprocessor.py"
[output.html]
mathjax-support = true
git-repository-url = "https://github.com/openmlsys/openmlsys-zh"
preferred-dark-theme = "navy"
additional-css = ["theme/dark-mode-images.css", "theme/version-selector.css"]
additional-js = ["theme/version-selector.js"]