Skip to content

Commit c9532b0

Browse files
dstansbyjoshmoore
andauthored
Fail doc build on warnings (#1548)
* Fail doc build on warnings * Add fail on warning to readthedocs * Disable navigation with keys in docs * Add release note --------- Co-authored-by: Josh Moore <josh@openmicroscopy.org>
1 parent cce501a commit c9532b0

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build:
77

88
sphinx:
99
configuration: docs/conf.py
10+
fail_on_warning: true
1011

1112
python:
1213
install:

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS = -W --keep-going
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
},
145145
],
146146
"collapse_navigation": True,
147+
"navigation_with_keys": False,
147148
}
148149

149150
# Add any paths that contain custom themes here, relative to this directory.

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Zarr is a file storage format for chunked, compressed, N-dimensional arrays base
6060
+++
6161

6262
.. button-ref:: tutorial
63+
:ref-type: ref
6364
:expand:
6465
:color: dark
6566
:click-parent:

docs/release.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Unreleased
2121
Docs
2222
~~~~
2323

24+
* The documentation build now fails if there are any warnings.
25+
By :user:`David Stansby <dstansby>` :issue:`1548`.
26+
2427
* Add links to ``numcodecs`` docs in the tutorial.
2528
By :user:`David Stansby <dstansby>` :issue:`1535`.
2629

@@ -169,10 +172,12 @@ Major changes
169172

170173
* Improve Zarr V3 support, adding partial store read/write and storage transformers.
171174
Add new features from the `v3 spec <https://zarr-specs.readthedocs.io/en/latest/core/v3.0.html>`_:
175+
172176
* storage transformers
173177
* `get_partial_values` and `set_partial_values`
174178
* efficient `get_partial_values` implementation for `FSStoreV3`
175179
* sharding storage transformer
180+
176181
By :user:`Jonathan Striebel <jstriebel>`; :issue:`1096`, :issue:`1111`.
177182

178183
* N5 nows supports Blosc.

0 commit comments

Comments
 (0)