-
Notifications
You must be signed in to change notification settings - Fork 44
/
conf.py
56 lines (40 loc) · 1.55 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
# 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
project = 'Analysis essentials'
copyright = 'HSF CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/legalcode) - Originally based on Software Carpentry (https://github.com/swcarpentry/) © 2016–2017 Software Carpentry Foundation'
author = 'HSF'
html_logo = 'hsf_logo_angled.png'
exclude_patterns += [
'miniconda/**',
'shell/data-shell/**',
'README.md',
]
html_context = {
'display_github': True,
'github_user': 'hsf-training',
'github_repo': 'analysis-essentials',
'github_version': 'master',
'conf_py_path': '/',
}
html_static_path += [
f'_static',
]
linkcheck_ignore += [
# FIXME: This no longer exists...
r'http://lhcb-release-area\.web\.cern\.ch/LHCb-release-area/DOC/online/releases/v4r65/doxygen/df/dd9/src_2_lineshape_maker_8cpp__incl\.png',
]
for folder in ['advanced-python', 'git', 'python', 'shell-extras', 'shell']:
starterkit_ci_redirects[f'{folder}/index.html'] = f'https://hsf-training.github.io/analysis-essentials/{folder}/README.html'
def hsf_ci_setup(app):
app.add_css_file('hsf.css')
setup.extra_setup_funcs += [hsf_ci_setup]
nbsphinx_execute = 'always'
nbsphinx_timeout = 60*20
old_setup = setup # imported from conf.py
def setup(app):
app.add_js_file(
"https://views.scientific-python.org/js/script.js",
**{"defer": "defer", "data-domain": "hepsoftwarefoundation.org"}
)
old_setup(app)