/usr/lib/python2.7/dist-packages/jupyter_sphinx_theme/__init__.py is in python-jupyter-sphinx-theme 0.0.6+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | """Jupyter sphinx theme."""
import os
import subprocess
import sys
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
def bash(fileName):
"""Runs a bash script in the local directory"""
sys.stdout.flush()
subprocess.call("bash {}".format(fileName), shell=True)
VERSION = (0, 0, 6)
__version__ = ".".join(str(v) for v in VERSION)
__version_full__ = __version__
theme_version = __version__
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = ['.rst', '.ipynb']
# Conf.py import settings
source_parsers = {}
def init_theme():
from recommonmark.parser import CommonMarkParser
source_parsers['.md'] = CommonMarkParser
source_suffix.append('.md')
html_theme = 'jupyter'
html_theme_path = ['/usr/share/jupyter_sphinx_theme']
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'nbsphinx'
]
html_sidebars = {
'**': [
'sidebartoc.html'
]
}
|