Skip to content

Commit

Permalink
📚 New theme & rearrangement of the docs (#4835)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored Mar 15, 2021
1 parent db4658a commit 76d6d75
Show file tree
Hide file tree
Showing 50 changed files with 797 additions and 625 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ dask-worker-space/

# xarray specific
doc/_build
doc/generated
generated/
xarray/tests/data/*.grib.*.idx

# Sync tools
Icon*

.ipynb_checkpoints
doc/rasm.zarr
12 changes: 8 additions & 4 deletions ci/requirements/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ dependencies:
- numba
- numpy>=1.17
- pandas>=1.0
- pip
- pydata-sphinx-theme>=0.4.3
- rasterio>=1.1
- seaborn
- setuptools
- sparse
- sphinx>=3.3
- sphinx_rtd_theme>=0.4
- sphinx-autosummary-accessors
- sphinx-book-theme >= 0.0.38
- sphinx-copybutton
- sphinx-panels
- sphinx>=3.3
- zarr>=2.4
- pip
- pip:
- scanpydoc
- sphinxext-rediraffe
- sphinxext-opengraph
# relative to this file. Needs to be editable to be accepted.
- -e ../..
8 changes: 8 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " rtdhtml Build html using same settings used on ReadtheDocs"
@echo " livehtml Make standalone HTML files and rebuild the documentation when a change is detected. Also includes a livereload enabled web server"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
Expand Down Expand Up @@ -58,6 +59,13 @@ html:
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

.PHONY: rtdhtml
rtdhtml:
$(SPHINXBUILD) -T -j auto -E -W --keep-going -b html -d $(BUILDDIR)/doctrees -D language=en . $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."


.PHONY: livehtml
livehtml:
# @echo "$(SPHINXATUOBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html"
Expand Down
31 changes: 12 additions & 19 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
@import url("theme.css");

.wy-side-nav-search>a img.logo,
.wy-side-nav-search .wy-dropdown>a img.logo {
width: 12rem
}

.wy-side-nav-search {
background-color: #eee;
}

.wy-side-nav-search>div.version {
display: none;
}

.wy-nav-top {
background-color: #555;
}

table.colwidths-given {
table-layout: fixed;
width: 100%;
Expand All @@ -25,3 +6,15 @@ table.docutils td {
white-space: unset;
word-wrap: break-word;
}

/* Reduce left and right margins */

.container, .container-lg, .container-md, .container-sm, .container-xl {
max-width: 1600px !important;
}

/* Make sidebar sticky */

.bd-sidebar {
position: sticky !important;
}
Binary file added doc/_static/thumbnails/ERA5-GRIB-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/thumbnails/ROMS_ocean_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/thumbnails/monthly-means.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/thumbnails/toy-weather-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions doc/_templates/autosummary/base.rst

This file was deleted.

2 changes: 0 additions & 2 deletions doc/_templates/layout.html

This file was deleted.

Loading

0 comments on commit 76d6d75

Please sign in to comment.