-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathconf.py
More file actions
99 lines (73 loc) · 2.47 KB
/
conf.py
File metadata and controls
99 lines (73 loc) · 2.47 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
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
94
95
96
97
98
99
# -*- coding: utf-8 -*-
from sys import path as sys_path
from os.path import abspath
from pathlib import Path
ROOT = Path(__file__).resolve().parent
sys_path.insert(0, abspath("."))
# -- Sphinx Options -----------------------------------------------------------
# If your project needs a minimal Sphinx version, state it here.
needs_sphinx = "3.0"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinxarg.ext", # Automatic argparse command line argument documentation
"exec",
]
autodoc_default_options = {
"members": True,
}
# The suffix(es) of source filenames.
source_suffix = {
".rst": "restructuredtext",
# '.txt': 'markdown',
# '.md': 'markdown',
}
master_doc = "index"
project = "VUnit"
copyright = "2014-2022, Lars Asplund"
author = "LarsAsplund, kraigher and contributors"
version = ""
release = ""
language = "en"
exclude_patterns = ["news.d/**"] # towncrier manages changelog
pygments_style = "sphinx"
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
if (ROOT / "_theme").is_dir():
html_theme_path = ["."]
html_theme = "_theme"
html_theme_options = {
"analytics_id": "UA-112393863-1",
"logo_only": True,
"vcs_pageview_mode": "blob",
"style_nav_header_background": "#0c479d",
"home_breadcrumbs": False,
}
html_context = {
"conf_py_path": f"{ROOT.name}/",
"display_github": True,
"github_user": "VUnit",
"github_repo": "vunit",
"github_version": "master/",
}
else:
html_theme = "alabaster"
html_static_path = ["_static"]
html_logo = str(Path(html_static_path[0]) / "VUnit_logo.png")
html_favicon = str(Path(html_static_path[0]) / "vunit.ico")
# Output file base name for HTML help builder.
htmlhelp_basename = "VUnitDoc"
# -- InterSphinx ----------------------------------------------------------
intersphinx_mapping = {
"python": ("https://docs.python.org/3.8/", None),
"pytest": ("https://docs.pytest.org/en/latest/", None),
}
# -- ExtLinks -------------------------------------------------------------
extlinks = {
"vunit_example": ("https://github.com/VUnit/vunit/tree/master/examples/%s/", "%s"),
"vunit_file": ("https://github.com/VUnit/vunit/tree/master/%s/", "%s"),
"vunit_commit": ("https://github.com/vunit/vunit/tree/%s/", "@%s"),
"vunit_issue": ("https://github.com/VUnit/vunit/issues/%s/", "#%s"),
}