mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-04-13 09:49:42 +08:00
* feat: add v1/v2 versioning and language selector for mdbook - Copy current content to v1/ directory (1st Edition) - Create v2/ directory with new TOC structure (2nd Edition) and placeholder chapters - Add version selector (V1/V2) and language toggle (EN/ZH) in top-right nav bar - Add build scripts: build_mdbook_v1.sh, build_mdbook_v2.sh - Update assemble_docs_publish_tree.py to support v1/v2 deployment layout - Fix mdbook preprocessor to use 'sections' key (v0.4.43 compatibility) - Update .gitignore for new build artifact directories - Deployment layout: / = v2 EN, /cn/ = v2 ZH, /v1/ = v1 EN, /v1/cn/ = v1 ZH Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * build: update CI to build and verify all four books (v1/v2 x EN/ZH) - Clarify step names: "Build v2 (EN + ZH)" and "Build v1 (EN + ZH)" - Add verification step to check all four index.html outputs exist - Deploy workflow assembles: / = v2 EN, /cn/ = v2 ZH, /v1/ = v1 EN, /v1/cn/ = v1 ZH Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: gracefully skip missing TOC entries instead of crashing resolve_toc_target() now returns None for missing files instead of raising FileNotFoundError. This fixes v1 EN build where chapter index files reference TOC entry names that don't match actual filenames. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
80 lines
2.8 KiB
INI
80 lines
2.8 KiB
INI
[project]
|
|
|
|
name = machine learning system
|
|
|
|
title = 机器学习系统:设计和实现
|
|
|
|
author = Luo Mai, Hao Dong
|
|
|
|
copyright = 2022, All authors.
|
|
|
|
release = 1.0.0
|
|
|
|
lang = zh
|
|
|
|
[build]
|
|
|
|
notebooks = *.md */*.md
|
|
|
|
# Resources are provided via symlinks created by build_html_zh.sh
|
|
resources = img/ references/
|
|
|
|
# Exclude nothing in zh_chapters — all .md files here are real content
|
|
exclusions = */*_origin.md
|
|
|
|
eval_notebook = True
|
|
|
|
tabs = mindspore, pytorch, tensorflow
|
|
|
|
sphinx_configs = numfig_format = {'figure': '图%%s', 'table': '表%%s', 'code-block': '列表%%s', 'section': '%%s节'}
|
|
latex_elements = {
|
|
'utf8extra' : '',
|
|
'inputenc' : '',
|
|
'babel' : r'''\usepackage[english]{babel}''',
|
|
'preamble' : r'''
|
|
\usepackage{ctex}
|
|
\setmainfont{Source Serif Pro}
|
|
\setsansfont{Source Sans Pro}
|
|
\setmonofont{Source Code Pro}
|
|
\setCJKmainfont[BoldFont=Source Han Serif SC SemiBold]{Source Han Serif SC}
|
|
\setCJKsansfont[BoldFont=Source Han Sans SC Medium]{Source Han Sans SC Normal}
|
|
\setCJKmonofont{Source Han Sans SC Normal}
|
|
\addto\captionsenglish{\renewcommand{\chaptername}{}}
|
|
\addto\captionsenglish{\renewcommand{\contentsname}{目录}}
|
|
\usepackage[draft]{minted}
|
|
\fvset{breaklines=true, breakanywhere=true}
|
|
\setlength{\headheight}{13.6pt}
|
|
\makeatletter
|
|
\fancypagestyle{normal}{
|
|
\fancyhf{}
|
|
\fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
|
|
\fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
|
|
\fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
|
|
\fancyhead[LE,RO]{{\py@HeaderFamily }}
|
|
}
|
|
\makeatother
|
|
\CJKsetecglue{}
|
|
\usepackage{zhnumber}
|
|
''',
|
|
'pointsize': '10pt',
|
|
'figure_align': 'H',
|
|
'fncychap': '\\usepackage[Sonny]{fncychap}',
|
|
}
|
|
bibtex_bibfiles = ['references/accelerator.bib', 'references/appendix.bib', 'references/backend.bib', 'references/data.bib', 'references/explainable.bib', 'references/extension.bib', 'references/federated.bib', 'references/frontend.bib', 'references/graph.bib', 'references/interface.bib', 'references/introduction.bib', 'references/model.bib', 'references/model_deployment.bib', 'references/recommender.bib', 'references/reinforcement.bib', 'references/rlsys.bib', 'references/training.bib']
|
|
|
|
|
|
|
|
[html]
|
|
|
|
header_links = GitHub, https://github.com/openmlsys/openmlsys-zh, fab fa-github,
|
|
English, https://openmlsys.github.io/, fas fa-language
|
|
|
|
favicon = static/favicon.png
|
|
|
|
html_logo = static/logo-with-text.png
|
|
|
|
|
|
[pdf]
|
|
|
|
latex_logo = static/logo.png
|