Skip to content

Commit d1573bb

Browse files
committed
1 parent bf85f96 commit d1573bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
2121
from git_version import git_version
2222

23+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
24+
2325
# If extensions (or modules to document with autodoc) are in another directory,
2426
# add these directories to sys.path here. If the directory is relative to the
2527
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -115,7 +117,8 @@
115117

116118
# The theme to use for HTML and HTML Help pages. See the documentation for
117119
# a list of builtin themes.
118-
#html_theme = 'sphinx_rtd_theme'
120+
if not on_rtd:
121+
html_theme = 'sphinx_rtd_theme'
119122

120123
def setup(app):
121124
# overrides for wide tables in RTD theme

0 commit comments

Comments
 (0)