Skip to content

Commit 8b8990a

Browse files
author
Max Jones
committed
Revert "Apply theme suggestion"
This reverts commit effb686.
1 parent effb686 commit 8b8990a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

doc/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# type: ignore
1616

17+
import os
1718
import sys
1819

1920
import sphinx_autosummary_accessors
@@ -147,10 +148,18 @@ def setup(app):
147148

148149
# -- Options for HTML output ----------------------------------------------
149150

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+
150159
# The theme to use for HTML and HTML Help pages. See the documentation for
151160
# a list of builtin themes.
152161
# tml_theme = 'default'
153-
html_theme = 'furo'
162+
html_theme = 'sphinx_rtd_theme'
154163

155164
# Theme options are theme-specific and customize the look and feel of a theme
156165
# further. For a list of options available for each theme, see the

doc/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ dependencies:
66
- python=3.8
77
- dask
88
- docrep
9-
- furo
109
- ipython
1110
- matplotlib
1211
- nbsphinx
@@ -16,5 +15,6 @@ dependencies:
1615
- sphinx
1716
- sphinx-autosummary-accessors
1817
- sphinx-copybutton
18+
- sphinx_rtd_theme
1919
- xarray
2020
- pip

0 commit comments

Comments
 (0)