Skip to content

Commit 8ffec20

Browse files
author
Max Jones
committed
Use pangeo_sphinx_book_theme
1 parent 8b8990a commit 8ffec20

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

doc/conf.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
# type: ignore
1616

17-
import os
1817
import sys
1918

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

149148
# -- Options for HTML output ----------------------------------------------
150149

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-
159150
# The theme to use for HTML and HTML Help pages. See the documentation for
160151
# a list of builtin themes.
161152
# tml_theme = 'default'
162-
html_theme = 'sphinx_rtd_theme'
153+
html_theme = 'pangeo_sphinx_book_theme'
163154

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

doc/environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- sphinx
1616
- sphinx-autosummary-accessors
1717
- sphinx-copybutton
18-
- sphinx_rtd_theme
1918
- xarray
2019
- pip
20+
- pip:
21+
- pangeo-sphinx-book-theme

0 commit comments

Comments
 (0)