mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-03-31 01:11:48 +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>
20 lines
556 B
TOML
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"]
|