[3.2.x] Fixed docs build with sphinxcontrib-spelling 7.5.0+.

sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set
of nodes for which the text is checked.

Backport of ac90529cc5 from main.
This commit is contained in:
Mariusz Felisiak 2022-05-31 07:40:54 +02:00
parent 37f4de2deb
commit 1a9098166e
31 changed files with 124 additions and 123 deletions

View file

@ -186,7 +186,7 @@ Imports
For example (comments are for explanatory purposes only):
.. code-block:: python
:caption: django/contrib/admin/example.py
:caption: ``django/contrib/admin/example.py``
# future
from __future__ import unicode_literals

View file

@ -557,7 +557,7 @@ Since this pattern involves a lot of boilerplate, Django provides the
installed, you should pass the set of targeted ``app_label`` as arguments:
.. code-block:: python
:caption: tests/app_label/tests.py
:caption: ``tests/app_label/tests.py``
from django.db import models
from django.test import SimpleTestCase

View file

@ -63,7 +63,7 @@ You'll need a few things before getting started:
* Access to Django's record on PyPI. Create a file with your credentials:
.. code-block:: ini
:caption: ~/.pypirc
:caption: ``~/.pypirc``
[pypi]
username:YourUsername