forked from lhcb/starterkit-lessons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
40 lines (30 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
# 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-2019, 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',
]
linkcheck_ignore += [
# FIXME: The URLs have changed
r'https://research\.cs\.wisc\.edu/htcondor/.*',
]
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_stylesheet('starterkit.css')
setup.extra_setup_funcs += [starterkit_ci_setup]