File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def __getattr__(cls, name):
37
37
38
38
# -- General configuration ------------------------------------------------
39
39
40
+ # turns off numpydoc autosummary warnings
41
+ numpydoc_show_class_members = False
42
+
40
43
# If your documentation needs a minimal Sphinx version, state it here.
41
44
#needs_sphinx = '1.0'
42
45
@@ -127,7 +130,15 @@ def __getattr__(cls, name):
127
130
128
131
# The theme to use for HTML and HTML Help pages. See the documentation for
129
132
# a list of builtin themes.
130
- html_theme = 'default'
133
+ # on_rtd is whether we are on readthedocs.org
134
+ on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
135
+
136
+ if not on_rtd : # only import and set the theme if we're building docs locally
137
+ import sphinx_rtd_theme
138
+ html_theme = 'sphinx_rtd_theme'
139
+ html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
140
+ else :
141
+ html_theme = 'default'
131
142
132
143
# Theme options are theme-specific and customize the look and feel of a theme
133
144
# further. For a list of options available for each theme, see the
You can’t perform that action at this time.
0 commit comments