From 855f40fb750ec188cebee3195d7ddb841f133881 Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Wed, 6 Jul 2022 19:16:03 -0400 Subject: [PATCH] No path --- doc/source/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index d326623..70368f6 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, -- GitLab