Skip to content
forked from pydata/xarray

Commit 43ba095

Browse files
keewisjhammandcherianIllviljan
authored
update the docs environment (pydata#7442)
* use python 3.10 in the docs environment * require a more recent `sphinx` version * [skip-ci] * remove the unused pydata-sphinx-theme [skip-ci] * pin `sphinx-book-theme` to a more recent version [skip-ci] * try working around the theme bug [skip-ci] * use string interpolation markers for the extlink text * try specifying the project of a intersphinx link * remove the empty `extra_navbar` and `navbar_footer_text` theme options * [skip-ci] --------- Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Deepak Cherian <[email protected]> Co-authored-by: Illviljan <[email protected]>
1 parent 0b9c224 commit 43ba095

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

ci/requirements/doc.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
- nodefaults
66
dependencies:
7-
- python=3.9
7+
- python=3.10
88
- bottleneck
99
- cartopy
1010
- cfgrib>=0.9
@@ -23,18 +23,17 @@ dependencies:
2323
- pandas>=1.4
2424
- pooch
2525
- pip
26-
- pydata-sphinx-theme>=0.4.3
2726
- pyproj
2827
- rasterio>=1.1
2928
- scipy!=1.10.0
3029
- seaborn
3130
- setuptools
3231
- sparse
3332
- sphinx-autosummary-accessors
34-
- sphinx-book-theme >= 0.0.38
33+
- sphinx-book-theme >= 0.3.0
3534
- sphinx-copybutton
3635
- sphinx-design
37-
- sphinx!=4.4.0
36+
- sphinx>=5.0
3837
- zarr>=2.10
3938
- pip:
4039
- sphinxext-rediraffe

doc/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797

9898

9999
extlinks = {
100-
"issue": ("https://github.com/pydata/xarray/issues/%s", "GH"),
101-
"pull": ("https://github.com/pydata/xarray/pull/%s", "PR"),
100+
"issue": ("https://github.com/pydata/xarray/issues/%s", "GH%s"),
101+
"pull": ("https://github.com/pydata/xarray/pull/%s", "PR%s"),
102102
}
103103

104104
# sphinx-copybutton configurations
@@ -244,12 +244,11 @@
244244
use_repository_button=True,
245245
use_issues_button=True,
246246
home_page_in_toc=False,
247-
extra_navbar="",
248-
navbar_footer_text="",
249247
extra_footer="""<p>Xarray is a fiscally sponsored project of <a href="https://numfocus.org">NumFOCUS</a>,
250248
a nonprofit dedicated to supporting the open-source scientific computing community.<br>
251249
Theme by the <a href="https://ebp.jupyterbook.org">Executable Book Project</a></p>""",
252250
twitter_url="https://twitter.com/xarray_devs",
251+
icon_links=[], # workaround for pydata/pydata-sphinx-theme#1220
253252
)
254253

255254

doc/user-guide/interpolation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ array-like, which gives the interpolated result as an array.
5050
# interpolation
5151
da.interp(time=[2.5, 3.5])
5252
53-
To interpolate data with a :py:doc:`numpy.datetime64 <reference/arrays.datetime>` coordinate you can pass a string.
53+
To interpolate data with a :py:doc:`numpy.datetime64 <numpy:reference/arrays.datetime>` coordinate you can pass a string.
5454

5555
.. ipython:: python
5656

0 commit comments

Comments
 (0)