-
Notifications
You must be signed in to change notification settings - Fork 13
/
conf.py
54 lines (41 loc) · 1.09 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
# You should normally never do wildcard imports
# Here it is useful to allow the configuration to be maintained elsewhere
# from starterkit_ci.sphinx_config import * # NOQA
import os
IN_GITHUB_ACTIONS_CI = os.environ.get("GITHUB_ACTIONS", False)
project = "Key4hep"
copyright = "2020, Key4hep"
author = "Key4hep"
# html_logo = "starterkit.png"
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store" "archive",
"README.md",
]
html_theme = "sphinx_rtd_theme"
html_context = {
"display_github": True,
"github_user": "key4hep",
"github_repo": "key4hep-doc",
"github_version": "main",
"conf_py_path": "/",
}
extensions = [
"sphinx_copybutton",
"sphinx_markdown_tables",
"sphinx_design",
"myst_parser",
]
source_suffix = {
".md": "markdown",
}
linkcheck_ignore = [
r"https://twiki.cern.ch/twiki/bin/view", # TWikis might need login
]
if IN_GITHUB_ACTIONS_CI:
linkcheck_ignore.append(
r"https://opensource.org", # cloudflare blocks requests from github actions
)
myst_heading_anchors = 3
myst_enable_extensions = ["colon_fence"]