Skip to content

Commit 640d441

Browse files
authored
Add documentation build to CI (#516)
1 parent be29d36 commit 640d441

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ TODO:
55
* [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
66
* [ ] New/modified features documented in docs/tutorial.rst
77
* [ ] Changes documented in docs/release.rst
8-
* [ ] Docs build locally (e.g., run ``tox -e docs``)
98
* [ ] AppVeyor and Travis CI passes
109
* [ ] Test coverage is 100% (Coveralls passes)

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ matrix:
2626
include:
2727
- python: 3.5
2828
- python: 3.6
29+
env: BUILD_DOCS='true'
2930
- python: 3.7
3031
dist: xenial
3132
sudo: true
@@ -42,6 +43,7 @@ install:
4243

4344
script:
4445
- tox
46+
- if [[ $BUILD_DOCS == 'true' ]]; then tox -e docs; fi
4547

4648
after_success:
4749
- coveralls

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
# List of patterns, relative to source directory, that match files and
9090
# directories to ignore when looking for source files.
9191
# This patterns also effect to html_static_path and html_extra_path
92-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
92+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'talks']
9393

9494
# The reST default role (used for this markup: `text`) to use for all
9595
# documents.

docs/release.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Upcoming Release
4949
* Refactor out ``_tofile``/``_fromfile`` from ``DirectoryStore``.
5050
By :user:`John Kirkham <jakirkham>`; :issue:`503`.
5151

52+
* Add documentation build to CI.
53+
By :user:`James Bourbeau <jrbourbeau>`; :issue:`516`.
54+
5255
.. _release_2.3.2:
5356

5457
2.3.2
@@ -141,7 +144,7 @@ Bug fixes
141144
* Avoid raising in :class:`zarr.storage.DirectoryStore`'s ``__setitem__`` when file already exists.
142145
By :user:`Justin Swaney <jmswaney>`, :issue:`272`, :issue:`318`.
143146

144-
* The required version of the `numcodecs <http://numcodecs.rtfd.io>`_ package has been upgraded
147+
* The required version of the `Numcodecs`_ package has been upgraded
145148
to 0.6.2, which has enabled some code simplification and fixes a failing test involving
146149
msgpack encoding. By :user:`John Kirkham <jakirkham>`, :issue:`361`, :issue:`360`, :issue:`352`,
147150
:issue:`355`, :issue:`324`.
@@ -215,10 +218,10 @@ Enhancements
215218

216219
* **New package for compressor and filter codecs**. The classes previously
217220
defined in the :mod:`zarr.codecs` module have been factored out into a
218-
separate package called NumCodecs_. The NumCodecs_ package also includes
221+
separate package called `Numcodecs`_. The `Numcodecs`_ package also includes
219222
several new codec classes not previously available in Zarr, including
220223
compressor codecs for Zstd and LZ4. This change is backwards-compatible with
221-
existing code, as all codec classes defined by NumCodecs are imported into the
224+
existing code, as all codec classes defined by Numcodecs are imported into the
222225
:mod:`zarr.codecs` namespace. However, it is recommended to import codecs from
223226
the new package, see the tutorial sections on :ref:`tutorial_compress` and
224227
:ref:`tutorial_filters` for examples. With contributions by
@@ -632,4 +635,4 @@ See `v0.4.0 release notes on GitHub
632635
See `v0.3.0 release notes on GitHub
633636
<https://github.com/zarr-developers/zarr-python/releases/tag/v0.3.0>`_.
634637

635-
.. _NumCodecs: http://numcodecs.readthedocs.io/
638+
.. _Numcodecs: http://numcodecs.readthedocs.io/

docs/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ Also added in Zarr version 2.3 are two storage classes for interfacing with serv
743743
databases. The :class:`zarr.storage.RedisStore` class interfaces `Redis <https://redis.io/>`_
744744
(an in memory data structure store), and the :class:`zarr.storage.MongoDB` class interfaces
745745
with `MongoDB <https://www.mongodb.com/>`_ (an oject oriented NoSQL database). These stores
746-
respectively require the `redis <https://redis-py.readthedocs.io>`_ and
746+
respectively require the `redis-py <https://redis-py.readthedocs.io>`_ and
747747
`pymongo <https://api.mongodb.com/python/current/>`_ packages to be installed.
748748

749749
For compatibility with the `N5 <https://github.com/saalfeldlab/n5>`_ data format, Zarr also provides

0 commit comments

Comments
 (0)