Debian Codegraph @

jupyter_sphinx_theme/__init__.py

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 """Jupyter sphinx theme."""
2 import os
3 import subprocess
4 import sys
5
6 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
7
8 def bash(fileName):
9 """Runs a bash script in the local directory"""
10 sys.stdout.flush()
11 subprocess.call("bash {}".format(fileName), shell=True)
12
13 VERSION = (0, 0, 6)
14 __version__ = ".".join(str(v) for v in VERSION)
15 __version_full__ = __version__
16 theme_version = __version__
17
18 # The suffix(es) of source filenames.
19 # You can specify multiple suffix as a list of string:
20 source_suffix = ['.rst', '.ipynb']
21
22 # Conf.py import settings
23 source_parsers = {}
24 def init_theme():
25 from recommonmark.parser import CommonMarkParser
26 source_parsers['.md'] = CommonMarkParser
27 source_suffix.append('.md')
28
29 html_theme = 'jupyter'
•30 html_theme_path = ['/usr/share/jupyter_sphinx_theme']
31
32 extensions = [
33 'sphinx.ext.autodoc',
34 'sphinx.ext.intersphinx',
35 'sphinx.ext.mathjax',
36 'nbsphinx'
37 ]
38
39 html_sidebars = {
40 '**': [
41 'sidebartoc.html'
42 ]
43 }