File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
# type: ignore
16
16
17
+ import os
17
18
import sys
18
19
19
20
import sphinx_autosummary_accessors
@@ -147,10 +148,18 @@ def setup(app):
147
148
148
149
# -- Options for HTML output ----------------------------------------------
149
150
151
+ on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
152
+
153
+ if not on_rtd : # only import and set the theme if we're building docs locally
154
+ import sphinx_rtd_theme
155
+
156
+ html_theme = 'sphinx_rtd_theme'
157
+ html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
158
+
150
159
# The theme to use for HTML and HTML Help pages. See the documentation for
151
160
# a list of builtin themes.
152
161
# tml_theme = 'default'
153
- html_theme = 'furo '
162
+ html_theme = 'sphinx_rtd_theme '
154
163
155
164
# Theme options are theme-specific and customize the look and feel of a theme
156
165
# further. For a list of options available for each theme, see the
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ dependencies:
6
6
- python=3.8
7
7
- dask
8
8
- docrep
9
- - furo
10
9
- ipython
11
10
- matplotlib
12
11
- nbsphinx
@@ -16,5 +15,6 @@ dependencies:
16
15
- sphinx
17
16
- sphinx-autosummary-accessors
18
17
- sphinx-copybutton
18
+ - sphinx_rtd_theme
19
19
- xarray
20
20
- pip
You can’t perform that action at this time.
0 commit comments