Skip to content

Commit 7773dac

Browse files
committed
docs: debug the rtd build
1 parent ab961eb commit 7773dac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@
156156
# ref. https://github.com/snide/sphinx_rtd_theme#using-this-theme-locally-then-building-on-read-the-docs
157157
#
158158
# on_rtd is whether we are on readthedocs.org
159-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
159+
env_readthedocs = os.environ.get('READTHEDOCS', None)
160+
print env_readthedocs
160161

161-
if not on_rtd: # only import and set the theme if we're building docs locally
162+
if not env_readthedocs: # only import and set the theme if we're building docs locally
162163
import sphinx_rtd_theme
163164
html_theme = 'sphinx_rtd_theme'
164165
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

0 commit comments

Comments
 (0)