forked from QQxiaoming/quard_star_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
59 lines (45 loc) · 1.72 KB
/
conf.py
File metadata and controls
59 lines (45 loc) · 1.72 KB
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
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
project = 'quard_star_tutorial'
copyright = '2021, Quard(qiaoqiming)'
author = 'Quard(qiaoqiming)'
extensions = ['myst_parser', 'sphinxcontrib.googleanalytics']
templates_path = ['_templates']
html_static_path = ['_static']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'index.md']
language = 'zh_CN'
html_theme = 'sphinx_material'
html_title = '主页'
googleanalytics_enabled = True
googleanalytics_id = 'G-2TBWPWF42X'
html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}
html_theme_options = {
'nav_title': '基于qemu从0开始构建嵌入式linux系统',
'color_primary': 'light-blue',
'color_accent': 'blue',
'repo_url': 'https://github.com/QQxiaoming/quard_star_tutorial',
'repo_name': 'quard_star_tutorial',
"logo_icon": "",
'globaltoc_depth': 1,
'globaltoc_collapse': True,
'globaltoc_includehidden': False,
"nav_links": [
{"href": "ch0","internal": True,"title": "正文"},
{"href": "ext1","internal": True,"title": "扩展文章"},
],
}
def setup(app):
app.add_css_file('toctree.css')