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.
2 parents b88e73d + b5a7de5 commit 0e4c4d1Copy full SHA for 0e4c4d1
docs/conf.py
@@ -106,7 +106,12 @@
106
107
# The theme to use for HTML and HTML Help pages. See the documentation for
108
# a list of builtin themes.
109
-html_theme = 'classic'
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
110
+
111
+if not on_rtd: # only import and set the theme if we're building docs locally
112
+ import sphinx_rtd_theme
113
+ html_theme = 'sphinx_rtd_theme'
114
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115
116
# Theme options are theme-specific and customize the look and feel of a theme
117
# further. For a list of options available for each theme, see the
0 commit comments