diff --git a/doc/source/conf.py b/doc/source/conf.py index d326623c5d10658ab796145b67043f9eaae60346..70368f6c71f6cd1481e72f5896460134d5310d02 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -28,7 +28,7 @@ import teqp release = teqp.__version__ # -- Exeucute all notebooks -------------------------------------------------- -subprocess.check_output(f'jupyter nbconvert --version', shell=True, cwd=path) +subprocess.check_output(f'jupyter nbconvert --version', shell=True) for path, dirs, files in os.walk('.'): for file in files: if file.endswith('.ipynb'): @@ -56,7 +56,11 @@ exclude_patterns = [] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'insipid' +on_rtd = os.environ.get('READTHEDOCS') == 'True' +if on_rtd: + html_theme = 'default' +else: + html_theme = 'insipid' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,