-
Notifications
You must be signed in to change notification settings - Fork 91
/
conf.py
41 lines (31 loc) · 1.22 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
# 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 = 'LHCb Starterkit Lessons'
copyright = '2015-2020, LHCb Starterkit'
author = 'LHCb Starterkit'
html_logo = 'starterkit.png'
exclude_patterns += [
'first-analysis-steps/code/**',
'README.md',
]
html_context = {
'display_github': True,
'github_user': 'lhcb',
'github_repo': 'starterkit-lessons',
'github_version': 'master',
'conf_py_path': '/',
}
html_static_path += [
f'_static',
]
# Links to be ignored by the CI check
linkcheck_ignore += [
r'https://groups\.cern\.ch/group/lhcb-distributed-analysis/default\.aspx', # 403 error, requires a login
r'https://lhcb-doxygen\.web\.cern\.ch/.*', # 403 error, requires a login
]
starterkit_ci_redirects['first-analysis-steps/index.html'] = 'https://lhcb.github.io/starterkit-lessons/first-analysis-steps/README.html'
starterkit_ci_redirects['second-analysis-steps/index.html'] = 'https://lhcb.github.io/starterkit-lessons/second-analysis-steps/README.html'
def starterkit_ci_setup(app):
app.add_css_file('starterkit.css')
setup.extra_setup_funcs += [starterkit_ci_setup]