-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.py
93 lines (79 loc) · 2.86 KB
/
conf.py
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
89
90
91
92
93
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Windows/MacOS/Linux 上 VSCode 配置 C++: Clang + Clang-based Tools + CMake + Conan'
copyright = '2024, FeignClaims'
author = 'FeignClaims'
html_title = f'{project}'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'myst_parser',
'sphinx.ext.extlinks',
'sphinx.ext.graphviz',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx_copybutton',
'sphinx_design',
'sphinx_examples',
'sphinx_sitemap',
'sphinx_tabs.tabs',
'sphinx_togglebutton',
'sphinxext.opengraph',
]
intersphinx_mapping = {
"question_board": ("https://question-board.readthedocs.io/", "https://question-board.readthedocs.io/objects.inv"),
}
intersphinx_disabled_reftypes = ["*"]
togglebutton_hint = ""
togglebutton_hint_hide = ""
templates_path = ['_templates']
exclude_patterns = ['README.md']
rst_prolog = '\n'.join(
list(
map(
lambda filename: open(f'_static/{filename}', 'r', encoding="utf8").read(),
['inline_cpp.rst', 'links.rst']))) + '\n'
language = 'zh_CN'
html_copy_source = False
html_show_sourcelink = False
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'sphinx_book_theme'
html_theme_options = {
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/FeignClaims/vscode_cpp_starter",
"icon": "fa-brands fa-github",
}
],
"use_sidenotes": True,
'repository_url': 'https://github.com/FeignClaims/vscode_cpp_starter',
'show_nav_level': 0,
'show_prev_next': True,
'show_toc_level': 2,
'use_edit_page_button': True,
'use_issues_button': True,
'use_source_button': True,
}
html_static_path = ['_static', '_theme']
html_favicon = '_static/favicon.png'
html_search_language = 'zh'
html_last_updated_fmt = '%Y-%m-%d %H:%M:%S'
html_baseurl = 'https://vscode-cpp-starter.readthedocs.io/'
sitemap_filename = 'sitemapindex.xml'
sitemap_url_scheme = '{link}'
html_extra_path = [
'_static/robots.txt',
'_verification/31d972d70689239e1779c33936e0d894.txt',
'_verification/88951ca8b733406185ce1f4f9498a37e.txt',
'_verification/baidu_verify_codeva-aMWOWlH85u.html',
'_verification/google13ac7719c05e0aea.html',
'_verification/sogousiteverification.txt',
]
def setup(app):
app.add_css_file("theme.css")