forked from openmlsys/openmlsys-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
88 lines (65 loc) · 2.77 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = machine laerning system
title = 机器学习系统:设计和实现
author = Luo Mai, Hao Dong
copyright = 2022, All authors.
release = 1.0.0
lang = zh
[build]
# A list of wildcards to indicate the markdown files that need to be evaluated as
# Jupyter notebooks.
notebooks = *.md */*.md
# A list of files that will be copied to the build folder.
resources = img/ references/
# Files that will be skipped.
exclusions = */*_origin.md README.md info/* contrib/*md
# If True (default), then will evaluate the notebook to obtain outputs.
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}
''',
# The font size ('10pt', '11pt' or '12pt').
'pointsize': '10pt',
# Latex figure (float) alignment
'figure_align': 'H',
'fncychap': '\\usepackage[Sonny]{fncychap}',
}
[html]
# A list of links that is displayed on the navbar. A link consists of three
# items: name, URL, and a fontawesome icon
# (https://fontawesome.com/icons?d=gallery). Items are separated by commas.
header_links = GitHub, https://github.com/openmlsys/openmlsys-zh, fab fa-github,
favicon = static/favicon.png
html_logo = static/logo-with-text.png
[pdf]
# The file used to post-process the generated tex file.
# post_latex = ./static/post_latex/main.py
latex_logo = static/logo.png