We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab961eb commit 7773dacCopy full SHA for 7773dac
doc/conf.py
@@ -156,9 +156,10 @@
156
# ref. https://github.com/snide/sphinx_rtd_theme#using-this-theme-locally-then-building-on-read-the-docs
157
#
158
# on_rtd is whether we are on readthedocs.org
159
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+env_readthedocs = os.environ.get('READTHEDOCS', None)
160
+print env_readthedocs
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
163
import sphinx_rtd_theme
164
html_theme = 'sphinx_rtd_theme'
165
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
0 commit comments