mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 10:34:10 +00:00
Update for jupyter-alabaster local build
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user