Skip to content

Commit 074ec7a

Browse files
authored
Merge pull request #91 from csiro-coasts/docs-updates
Small docs tweaks
2 parents f6390c6 + 7784d97 commit 074ec7a

File tree

21 files changed

+127
-95
lines changed

21 files changed

+127
-95
lines changed

continuous-integration/requirements.txt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
#
55
# pip-compile --extra=testing --output-file=continuous-integration/requirements.txt setup.cfg
66
#
7+
accessible-pygments==0.0.4
8+
# via pydata-sphinx-theme
79
alabaster==0.7.13
810
# via sphinx
911
babel==2.12.1
10-
# via sphinx
12+
# via
13+
# pydata-sphinx-theme
14+
# sphinx
1115
beautifulsoup4==4.12.2
1216
# via pydata-sphinx-theme
1317
bottleneck==1.3.7
@@ -145,12 +149,15 @@ pyarrow==12.0.0
145149
# via dask
146150
pycodestyle==2.10.0
147151
# via flake8
148-
pydata-sphinx-theme==0.8.1
152+
pydata-sphinx-theme==0.13.3
149153
# via sphinx-book-theme
150154
pyflakes==3.0.1
151155
# via flake8
152156
pygments==2.15.1
153-
# via sphinx
157+
# via
158+
# accessible-pygments
159+
# pydata-sphinx-theme
160+
# sphinx
154161
pykdtree==1.3.7.post0
155162
# via emsarray (setup.cfg)
156163
pyparsing==3.0.9
@@ -176,9 +183,7 @@ python-dateutil==2.8.2
176183
pytz==2023.3
177184
# via pandas
178185
pyyaml==6.0
179-
# via
180-
# dask
181-
# sphinx-book-theme
186+
# via dask
182187
requests==2.30.0
183188
# via
184189
# pooch
@@ -200,7 +205,7 @@ sphinx==4.3.2
200205
# emsarray (setup.cfg)
201206
# pydata-sphinx-theme
202207
# sphinx-book-theme
203-
sphinx-book-theme==0.3.3
208+
sphinx-book-theme==1.0.1
204209
# via emsarray (setup.cfg)
205210
sphinxcontrib-applehelp==1.0.4
206211
# via sphinx
@@ -234,7 +239,9 @@ types-pytz==2023.3.0.0
234239
# emsarray (setup.cfg)
235240
# pandas-stubs
236241
typing-extensions==4.5.0
237-
# via mypy
242+
# via
243+
# mypy
244+
# pydata-sphinx-theme
238245
tzdata==2023.3
239246
# via pandas
240247
urllib3==2.0.2

docs/developing/conventions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This selector can be used to subset the dataset to a single grid index.
9999
.. literalinclude:: ./grass.py
100100
:pyobject: Grass.selector_for_index
101101

102-
:attr:`.Convention.polygons` is an array of shapely :class:`Polygon` instances,
102+
:attr:`.Convention.polygons` is an array of :class:`shapely.Polygon` instances,
103103
one for each face in the dataset.
104104
If a cell does not have a valid polygon
105105
--- for example, if the coordinates for that polygon have been dropped

docs/releases/development.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ Next release (in development)
1414
deprecate :meth:`.Convention.get_times()` and :meth:`.Convention.get_depths()`
1515
(:pr:`92`).
1616
* Add :meth:`.Convention.select_variables` (:pr:`93`).
17+
* Fix various small issues with the docs.
18+
Use newer version of ``sphinx-book-theme`` for documentation
19+
(:pr:`91`).

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ complete =
5353

5454
docs =
5555
sphinx ~=4.3.1
56-
sphinx_book_theme ~=0.3.2
56+
sphinx_book_theme ~=1.0.1
5757
livereload~=2.6.3
5858

5959
testing =

src/emsarray/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main(options: argparse.Namespace) -> None:
3333
"""
3434
The main entry point for :mod:`emsarray` as a command line utility.
3535
36-
See also
36+
See Also
3737
--------
3838
:ref:`cli`
3939
"""

src/emsarray/cli/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class CommandException(RuntimeError):
22
"""Raise this to exit a command line script gracefully.
33
4-
See also
4+
See Also
55
--------
66
:func:`.utils.console_entrypoint`
77
"""

src/emsarray/cli/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def main(argv: Optional[List[str]]) -> None:
9999
100100
... # Continue on with the rest of the program
101101
102-
See also
102+
See Also
103103
--------
104104
105105
:func:`.nice_console_errors`
@@ -336,7 +336,7 @@ def geometry_argument(argument_string: str) -> BaseGeometry:
336336
def bounds_argument(bounds_string: str) -> BaseGeometry:
337337
"""
338338
Parse a comma separated string of (lon_min, lat_min, lon_max, lat_max)
339-
in to a :class:`shapely.geometry.Polygon`. Used as an :mod:`argparse`
339+
in to a :class:`shapely.Polygon`. Used as an :mod:`argparse`
340340
parameter ``type``.
341341
342342
Example

0 commit comments

Comments
 (0)