move to alabaster theme

This commit is contained in:
Carol Willing
2018-05-03 03:22:26 +02:00
parent 1750ff0324
commit 6389751c22

View File

@@ -21,7 +21,6 @@ extensions = [
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'autodoc_traits', 'autodoc_traits',
'jupyter_alabaster_theme',
] ]
templates_path = ['_templates'] templates_path = ['_templates']
@@ -67,7 +66,7 @@ source_suffix = ['.rst', '.md']
# -- Options for HTML output ---------------------------------------------- # -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. # The theme to use for HTML and HTML Help pages.
html_theme = 'jupyter_alabaster_theme' html_theme = 'alabaster'
#html_theme_options = {} #html_theme_options = {}
#html_theme_path = [] #html_theme_path = []
@@ -170,9 +169,7 @@ intersphinx_mapping = {'https://docs.python.org/3/': None}
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: if not on_rtd:
import jupyter_alabaster_theme html_theme = 'alabaster'
html_theme = 'jupyter_alabaster_theme'
html_theme_path = [jupyter_alabaster_theme.get_path()]
else: else:
# readthedocs.org uses their theme by default, so no need to specify it # readthedocs.org uses their theme by default, so no need to specify it
# build rest-api, since RTD doesn't run make # build rest-api, since RTD doesn't run make