This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
conf.py
82 lines (68 loc) · 3.17 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
import os
# Retrieve branch name
if os.getenv('CI'):
branch_name = os.environ['TRAVIS_BRANCH']
else:
import pygit2
branch_name = pygit2.Repository('.').head.shorthand
extensions = ['sphinx.ext.extlinks',
'sphinx.ext.todo',
'sphinx_rtd_theme',
]
todo_include_todos = True
# The master toctree document.
master_doc = 'index'
project = 'Project March'
copyright = '2020, Project March'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = 'Melodic'
# The full version, including alpha/beta/rc tags.
release = 'Melodic'
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'default'
# Name of the style used to generate the html documentation
html_theme = 'sphinx_rtd_theme'
html_theme_options = {
'logo_only': True,
'display_version': False,
'style_external_links': True,
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_last_updated_fmt = '%b %d, %Y'
html_show_copyright = True
html_context = {
'display_github': True,
'github_user': 'project-march',
'github_repo': 'tutorials',
'github_version': branch_name,
"conf_py_path": "/",
"css_files": ['_static/css/override.css'],
"favicon": "favicon.ico",
"logo": "logo.png"
}
# Global substitutions
rst_prolog = """
.. |march| replace:: March exoskeleton
"""
# Links
extlinks = {'codedir': ('https://github.com/' + html_context['github_user'] + '/tutorials/tree/' + html_context['github_version'] + '/doc/%s', ''),
'rootdir': ('https://github.com/' + html_context['github_user'] + '/tutorials/tree/' + html_context['github_version'] + '/%s', ''),
'hardware-interface': ('https://github.com/' + html_context['github_user'] + '/hardware-interface/tree/develop/%s', ''),
'input-device': ('https://github.com/' + html_context['github_user'] + '/input-device/tree/develop/%s', ''),
'march': ('https://github.com/' + html_context['github_user'] + '/march/tree/develop/%s', ''),
'monitor': ('https://github.com/' + html_context['github_user'] + '/monitor/tree/develop/%s', ''),
'state-machine': ('https://github.com/' + html_context['github_user'] + '/state-machine/tree/develop/%s', ''),
'simulation': ('https://github.com/' + html_context['github_user'] + '/simulation/tree/develop/%s', ''),
'gait-files': ('https://github.com/' + html_context['github_user'] + '/gait-files/tree/develop/%s', ''),
'ethercat-slaves': ('https://github.com/' + html_context['github_user'] + '/ethercat-slaves/tree/develop/%s', ''),
'gait-generation': ('https://github.com/' + html_context['github_user'] + '/gait-generation/tree/develop/%s', ''),
'march_website': ('http://projectmarch.nl', '')}
# Output file base name for HTML help builder.
htmlhelp_basename = 'MarchDocumentation'