mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
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.
This commit is contained in:
parent
1058fc7023
commit
ac90529cc5
31 changed files with 128 additions and 127 deletions
|
@ -564,7 +564,7 @@ current one as well as templates included via the :ttag:`include` tag,
|
|||
just like all block tags. For example:
|
||||
|
||||
.. code-block:: html+django
|
||||
:caption: base.html
|
||||
:caption: ``base.html``
|
||||
|
||||
{% autoescape off %}
|
||||
<h1>{% block title %}{% endblock %}</h1>
|
||||
|
@ -573,7 +573,7 @@ just like all block tags. For example:
|
|||
{% endautoescape %}
|
||||
|
||||
.. code-block:: html+django
|
||||
:caption: child.html
|
||||
:caption: ``child.html``
|
||||
|
||||
{% extends "base.html" %}
|
||||
{% block title %}This & that{% endblock %}
|
||||
|
@ -653,14 +653,14 @@ of all comments related to the current task with::
|
|||
You can also access methods you've explicitly defined on your own models:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: models.py
|
||||
:caption: ``models.py``
|
||||
|
||||
class Task(models.Model):
|
||||
def foo(self):
|
||||
return "bar"
|
||||
|
||||
.. code-block:: html+django
|
||||
:caption: template.html
|
||||
:caption: ``template.html``
|
||||
|
||||
{{ task.foo }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue