-
Notifications
You must be signed in to change notification settings - Fork 495
/
conf.py
55 lines (44 loc) · 1.33 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
import sys
import os
import shlex
import sphinx_rtd_theme
# Add dev disclaimer.
_release = {}
exec(compile(open('../../voila/_version.py').read(), '../../voila/_version.py', 'exec'), _release)
if _release['version_info'][-1] == 'dev':
rst_prolog = """
.. note::
This documentation is for a development version of Voilà. There may be
significant differences from the latest stable release.
"""
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
# Toc options
'sticky_navigation': False,
'navigation_depth': 2,
}
def setup(app):
app.add_css_file("main_stylesheet.css")
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
]
html_static_path = ['_static']
source_suffix = '.rst'
master_doc = 'index'
project = 'voila'
copyright = u'2020, The Voilà Development Team'
author = u'The Voilà Development Team'
version = '.'.join(map(str, _release['version_info'][:2]))
release = _release['__version__']
language = None
html_logo = 'jupyter-white.svg'
exclude_patterns = []
highlight_language = 'python'
pygments_style = 'sphinx'
todo_include_todos = False
htmlhelp_basename = 'voiladoc'
intersphinx_mapping = {'https://docs.python.org/': None}