-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
conf.py
76 lines (61 loc) · 2.3 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
"""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
"""
from importlib import metadata
# -- Project information ---------------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
author = "Xiao Yang"
copyright = "2023, Xiao Yang"
project = "WAN"
release = metadata.version("wanot")
version = ".".join(release.split(".")[:2])
# -- General configuration -------------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_click",
"sphinx_design",
"sphinxcontrib.autodoc_pydantic",
]
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
templates_path = ["_templates"]
html_theme_options = {
"announcement": (
"<em>WAN</em> "
"is in the <strong>Beta</strong> phase. "
"Changes and potential instability should be anticipated. "
"Any feedback, comments, suggestions and contributions are welcome!"
),
}
# -- Options for HTML output -----------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "furo"
html_static_path = ["_static"]
# -- Options for autodoc extension ----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration
autodoc_default_options = {
"members": None,
}
# -- Options for autodoc_pydantic extension -------------------------------------------
# https://autodoc-pydantic.readthedocs.io/en/stable/users/configuration.html
autodoc_pydantic_settings_show_json = False
# -- Options for myst-parser extension ------------------------------------------------
# https://myst-parser.readthedocs.io/en/latest/configuration.html
myst_enable_extensions = [
"colon_fence",
"deflist",
]
myst_heading_anchors = 3
myst_url_schemes = {
"http": None,
"https": None,
"vscode": None,
}