-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.py
97 lines (69 loc) · 2.81 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
94
95
96
97
from pathlib import Path
from json import loads as json_loads
ROOT = Path(__file__).resolve().parent
# -- Project information -----------------------------------------------------
project = 'OSVVM Documentation'
author = 'Jim Lewis'
copyright = f'2022, {author} Licensed under CC BY-NC-ND 4.0'
version = '2022.03'
release = version
# -- General configuration ---------------------------------------------------
master_doc = "index"
extensions = [
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
'myst_parser'
]
source_suffix = {
'.rst': 'restructuredtext', '.md': 'markdown'
}
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '*.*_bak', 'z_*']
numfig = True
numfig_format = {
'figure': 'Figure %s: ',
'table': 'Table %s: ',
'code-block': 'Listing %s',
'section': 'Section %s'
}
# -- Options for HTML output -------------------------------------------------
html_context = {}
ctx = ROOT / "context.json"
if ctx.is_file():
html_context.update(json_loads(ctx.open("r").read()))
if (ROOT / "_theme").is_dir():
html_theme_path = ["."]
html_theme = "_theme"
html_theme_options = {
"logo_only": True,
"home_breadcrumbs": True,
"vcs_pageview_mode": "blob",
}
html_css_files = [
"theme_overrides.css",
]
else:
html_theme = "alabaster"
html_static_path = ["_static"]
html_logo = str(Path(html_static_path[0]) / "logo.png")
html_favicon = str(Path(html_static_path[0]) / "favicon.png")
htmlhelp_basename = "HDLCDoc"
# -- Sphinx.Ext.InterSphinx --------------------------------------------------------------------------------------------
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"edaa": ("https://edaa-org.github.io", None),
}
# -- Sphinx.Ext.ExtLinks -----------------------------------------------------------------------------------------------
extlinks = {
"gh": ("https://github.com/OSVVM/%s", "%s"),
"pdfdoc": ("https://github.com/OSVVM/Documentation/blob/main/%s", "%s"),
"AXI4": ("https://github.com/OSVVM/AXI4/tree/main/%s", "%s"),
"UART": ("https://github.com/OSVVM/UART/tree/main/%s", "%s"),
"DpRam": ("https://github.com/OSVVM/UART/tree/main/%s", "%s"),
}
# # Removed from extlinks "wikipedia": ("https://en.wikipedia.org/wiki/%s", None),
# # Removed from extlinks "awesome": ("https://hdl.github.io/awesome/items/%s", ""),
# # Removed from extlinks "ghsharp": ("https://github.com/OSVVM/osvvm.github.io/issues/%s", "#"),
# # Removed from extlinks "ghissue": ("https://github.com/OSVVM/osvvm.github.io/issues/%s", "issue #"),
# # Removed from extlinks "ghpull": ("https://github.com/OSVVM/osvvm.github.io/pull/%s", "pull request #"),
# # Removed from extlinks "ghsrc": ("https://github.com/OSVVM/osvvm.github.io/blob/main/%s", ""),