diff --git a/docs/Makefile b/docs/Makefile index 3d6fe3503ab4..26cd257237a6 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,7 +2,7 @@ # # You can set these variables from the command line. -SPHINXOPTS = -W -n -jauto +SPHINXOPTS = --fail-on-warning -n -jauto SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build diff --git a/docs/advanced_topics/images/custom_image_model.md b/docs/advanced_topics/images/custom_image_model.md index beadf8cfd13a..9a2aa46c9165 100644 --- a/docs/advanced_topics/images/custom_image_model.md +++ b/docs/advanced_topics/images/custom_image_model.md @@ -79,12 +79,12 @@ The following methods can be overridden on your custom `Image` or `Rendition` mo :no-index: .. class:: AbstractImage - :noindexentry: + :no-index-entry: .. automethod:: get_upload_to .. class:: AbstractRendition - :noindexentry: + :no-index-entry: .. automethod:: get_upload_to ``` diff --git a/docs/reference/pages/model_reference.md b/docs/reference/pages/model_reference.md index ebbea2e43fdb..76f09d9b4e9e 100644 --- a/docs/reference/pages/model_reference.md +++ b/docs/reference/pages/model_reference.md @@ -156,7 +156,7 @@ See also [django-treebeard](https://django-treebeard.readthedocs.io/en/latest/in ```{eval-rst} .. class:: Page - :noindex: + :no-index: .. automethod:: get_specific @@ -444,7 +444,7 @@ The {meth}`~wagtail.models.Site.find_for_request` function returns the Site obje ```{eval-rst} .. class:: Site - :noindex: + :no-index: .. automethod:: find_for_request @@ -546,7 +546,7 @@ If your model defines a [`Meta` class](inv:django#ref/models/options) (either wi ```{eval-rst} .. class:: TranslatableMixin - :noindex: + :no-index: .. automethod:: get_translations @@ -607,7 +607,7 @@ Pages already include this mixin, so there is no need to add it. ```{eval-rst} .. class:: RevisionMixin - :noindex: + :no-index: .. autoattribute:: revisions @@ -665,7 +665,7 @@ This mixin requires {class}`~wagtail.models.RevisionMixin` to be applied. Pages ```{eval-rst} .. class:: DraftStateMixin - :noindex: + :no-index: .. automethod:: publish @@ -707,7 +707,7 @@ Pages already include this mixin, so there is no need to add it. See [](wagtails ```{eval-rst} .. class:: LockableMixin - :noindex: + :no-index: .. automethod:: get_lock @@ -805,7 +805,7 @@ You can use the [`purge_revisions`](purge_revisions) command to delete old revis ```{eval-rst} .. class:: Revision - :noindex: + :no-index: .. attribute:: objects @@ -833,7 +833,7 @@ You can use the [`purge_revisions`](purge_revisions) command to delete old revis ```{eval-rst} .. class:: Revision - :noindex: + :no-index: .. automethod:: as_object @@ -928,7 +928,7 @@ Workflows represent sequences of tasks that must be approved for an action to be ```{eval-rst} .. class:: Workflow - :noindex: + :no-index: .. automethod:: start @@ -1007,7 +1007,7 @@ Workflow states represent the status of a started workflow on an object. ```{eval-rst} .. class:: WorkflowState - :noindex: + :no-index: .. attribute:: STATUS_CHOICES @@ -1064,7 +1064,7 @@ Tasks represent stages in a workflow that must be approved for the workflow to c ```{eval-rst} .. class:: Task - :noindex: + :no-index: .. autoattribute:: workflows @@ -1171,7 +1171,7 @@ Task states store state information about the progress of a task on a particular ```{eval-rst} .. class:: TaskState - :noindex: + :no-index: .. attribute:: STATUS_CHOICES @@ -1325,7 +1325,7 @@ An abstract base class that represents a record of an action performed on an obj ```{eval-rst} .. class:: BaseLogEntry - :noindex: + :no-index: .. autoattribute:: user_display_name diff --git a/setup.py b/setup.py index 7cc01246a371..4d0cdd620bf1 100755 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ documentation_extras = [ "pyenchant>=3.1.1,<4", "sphinxcontrib-spelling>=7,<8", - "Sphinx>=7.0", + "Sphinx>=7.3", "sphinx-autobuild>=0.6.0", "sphinx-wagtail-theme==6.3.0", "myst_parser==2.0.0",