mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[4.0.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:
parent
8a294ee2e0
commit
4d20d2f7c2
31 changed files with 128 additions and 127 deletions
|
@ -171,7 +171,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
|
||||
|
|
|
@ -563,7 +563,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue