Skip to content

Commit e0afa7f

Browse files
committed
docs/conf.py: made definition of html_theme conditional on if the build is local or on RTDs (trying to solve the problem where the read the docs sidebar popup menu for choosing version, etc. does not pop up when clicked)
1 parent 0dbb9f1 commit e0afa7f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/conf.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@
9797
#
9898
#html_theme = 'alabaster'
9999
#html_theme = 'default'
100-
#on_rtd = os.environ.get('READTHEDOCS') == 'True'
101-
#if on_rtd:
102-
# html_theme = 'default'
103-
#else:
104-
# html_theme = 'sphinx_rtd_theme'
105-
html_theme = 'sphinx_rtd_theme'
100+
on_rtd = os.environ.get('READTHEDOCS') == 'True'
101+
if on_rtd:
102+
html_theme = 'default'
103+
else:
104+
html_theme = 'sphinx_rtd_theme'
105+
# html_theme = 'sphinx_rtd_theme'
106106
# html_theme_path = ['_themes']
107107

108108
# Theme options are theme-specific and customize the look and feel of a

0 commit comments

Comments
 (0)