Files
openmlsys-zh/zh_chapters/config.ini
Yeqi Huang f974d3e841 Split book into English and Chinese builds with framework update (#487)
* docs: split the book into English and Chinese builds

* feat: update english version framework

* fix: fix ci
2026-03-09 17:32:24 +00:00

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