Skip to content

Commit 76d6d75

Browse files
authored
πŸ“š New theme & rearrangement of the docs (#4835)
1 parent db4658a commit 76d6d75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+797
-625
lines changed

β€Ž.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ dask-worker-space/
6565

6666
# xarray specific
6767
doc/_build
68-
doc/generated
68+
generated/
6969
xarray/tests/data/*.grib.*.idx
7070

7171
# Sync tools
7272
Icon*
7373

7474
.ipynb_checkpoints
75+
doc/rasm.zarr

β€Žci/requirements/doc.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@ dependencies:
2020
- numba
2121
- numpy>=1.17
2222
- pandas>=1.0
23+
- pip
24+
- pydata-sphinx-theme>=0.4.3
2325
- rasterio>=1.1
2426
- seaborn
2527
- setuptools
2628
- sparse
27-
- sphinx>=3.3
28-
- sphinx_rtd_theme>=0.4
2929
- sphinx-autosummary-accessors
30+
- sphinx-book-theme >= 0.0.38
31+
- sphinx-copybutton
32+
- sphinx-panels
33+
- sphinx>=3.3
3034
- zarr>=2.4
31-
- pip
3235
- pip:
33-
- scanpydoc
36+
- sphinxext-rediraffe
37+
- sphinxext-opengraph
3438
# relative to this file. Needs to be editable to be accepted.
3539
- -e ../..

β€Ždoc/Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1919
help:
2020
@echo "Please use \`make <target>' where <target> is one of"
2121
@echo " html to make standalone HTML files"
22+
@echo " rtdhtml Build html using same settings used on ReadtheDocs"
2223
@echo " livehtml Make standalone HTML files and rebuild the documentation when a change is detected. Also includes a livereload enabled web server"
2324
@echo " dirhtml to make HTML files named index.html in directories"
2425
@echo " singlehtml to make a single large HTML file"
@@ -58,6 +59,13 @@ html:
5859
@echo
5960
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
6061

62+
.PHONY: rtdhtml
63+
rtdhtml:
64+
$(SPHINXBUILD) -T -j auto -E -W --keep-going -b html -d $(BUILDDIR)/doctrees -D language=en . $(BUILDDIR)/html
65+
@echo
66+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
67+
68+
6169
.PHONY: livehtml
6270
livehtml:
6371
# @echo "$(SPHINXATUOBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html"

β€Ždoc/_static/style.css

+12-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
@import url("theme.css");
2-
3-
.wy-side-nav-search>a img.logo,
4-
.wy-side-nav-search .wy-dropdown>a img.logo {
5-
width: 12rem
6-
}
7-
8-
.wy-side-nav-search {
9-
background-color: #eee;
10-
}
11-
12-
.wy-side-nav-search>div.version {
13-
display: none;
14-
}
15-
16-
.wy-nav-top {
17-
background-color: #555;
18-
}
19-
201
table.colwidths-given {
212
table-layout: fixed;
223
width: 100%;
@@ -25,3 +6,15 @@ table.docutils td {
256
white-space: unset;
267
word-wrap: break-word;
278
}
9+
10+
/* Reduce left and right margins */
11+
12+
.container, .container-lg, .container-md, .container-sm, .container-xl {
13+
max-width: 1600px !important;
14+
}
15+
16+
/* Make sidebar sticky */
17+
18+
.bd-sidebar {
19+
position: sticky !important;
20+
}
Loading
76.1 KB
Loading
Loading
444 KB
Loading
Loading
Loading
Loading

β€Ždoc/_templates/autosummary/base.rst

-3
This file was deleted.

β€Ždoc/_templates/layout.html

-2
This file was deleted.

0 commit comments

Comments
Β (0)