build: migrate docs publishing to mdbook

Move the English root site to mdBook, keep the Chinese site as a sub-book, and update CI/deploy to publish .mdbook outputs to docs/ and docs/cn/. Also add regression coverage for placeholder skipping, publish-tree assembly, and shared resource setup.
This commit is contained in:
cydia2001
2026-03-11 00:57:34 +00:00
parent 7143925e01
commit 9d75cdc6c3
22 changed files with 1432 additions and 673 deletions

View File

@@ -1,15 +1,15 @@
[book]
authors = ["OpenMLSys Contributors"]
language = "zh-CN"
src = "zh_chapters"
title = "机器学习系统:设计和实现"
language = "en"
src = "en_chapters"
title = "Machine Learning Systems: Design and Implementation"
[build]
build-dir = ".mdbook-zh/book"
build-dir = ".mdbook/book"
create-missing = false
[preprocessor.openmlsys-zh]
command = "python3 tools/mdbook_zh_preprocessor.py"
[preprocessor.openmlsys]
command = "python3 tools/mdbook_preprocessor.py"
[output.html]
git-repository-url = "https://github.com/openmlsys/openmlsys-zh"