Update for jupyter-alabaster local build

This commit is contained in:
Carol Willing
2017-05-06 16:44:34 -07:00
parent cc7605d6a9
commit f815fe8b59

View File

@@ -8,7 +8,7 @@ import shlex
import recommonmark.parser import recommonmark.parser
# Set paths # Set paths
#sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------
@@ -169,12 +169,10 @@ intersphinx_mapping = {'https://docs.python.org/': None}
# -- Read The Docs -------------------------------------------------------- # -- Read The Docs --------------------------------------------------------
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: if not on_rtd:
# only import and set the theme if we're building docs locally import jupyter_alabaster_theme
import sphinx_rtd_theme html_theme = 'jupyter_alabaster_theme'
html_theme = 'sphinx_rtd_theme' html_theme_path = [jupyter_alabaster_theme.get_path()]
html_theme_path = [sphinx_rtd_theme.get_html_theme_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