From cc70a0343ef51ffcc0b1211dd6e7abedc4b43ea6 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 14 Apr 2020 09:32:09 +0200 Subject: [PATCH] Fixed term warning on Sphinx 3.0.1+. "term" role became case sensitive in Sphinx 3.0.1. --- docs/internals/contributing/localizing.txt | 11 ++++++----- .../contributing/writing-code/submitting-patches.txt | 4 ++-- docs/intro/whatsnext.txt | 4 ++-- docs/ref/models/fields.txt | 2 +- docs/releases/1.11.txt | 7 ++++--- docs/releases/1.8.txt | 6 +++--- docs/releases/2.2.txt | 7 ++++--- 7 files changed, 22 insertions(+), 19 deletions(-) diff --git a/docs/internals/contributing/localizing.txt b/docs/internals/contributing/localizing.txt index 8942ea742a898..a2f45b2b46854 100644 --- a/docs/internals/contributing/localizing.txt +++ b/docs/internals/contributing/localizing.txt @@ -46,11 +46,12 @@ translating or add a language that isn't yet translated, here's what to do: `Transifex User Guide`_. Translations from Transifex are only integrated into the Django repository at -the time of a new :term:`feature release`. We try to update them a second time -during one of the following :term:`patch release`\s, but that depends on the -translation manager's availability. So don't miss the string freeze period -(between the release candidate and the feature release) to take the opportunity -to complete and fix the translations for your language! +the time of a new :term:`feature release `. We try to update +them a second time during one of the following :term:`patch release +`\s, but that depends on the translation manager's availability. +So don't miss the string freeze period (between the release candidate and the +feature release) to take the opportunity to complete and fix the translations +for your language! Formats ======= diff --git a/docs/internals/contributing/writing-code/submitting-patches.txt b/docs/internals/contributing/writing-code/submitting-patches.txt index 3f5c4618fd585..5ea265c55ba39 100644 --- a/docs/internals/contributing/writing-code/submitting-patches.txt +++ b/docs/internals/contributing/writing-code/submitting-patches.txt @@ -223,8 +223,8 @@ Finally, there are a couple of updates to Django's documentation to make: under the appropriate version describing what code will be removed. Once you have completed these steps, you are finished with the deprecation. -In each :term:`feature release`, all ``RemovedInDjangoXXWarning``\s matching -the new version are removed. +In each :term:`feature release `, all +``RemovedInDjangoXXWarning``\s matching the new version are removed. JavaScript patches ================== diff --git a/docs/intro/whatsnext.txt b/docs/intro/whatsnext.txt index 27b9289d8e808..5a3814a503307 100644 --- a/docs/intro/whatsnext.txt +++ b/docs/intro/whatsnext.txt @@ -194,8 +194,8 @@ Differences between versions The text documentation in the master branch of the Git repository contains the "latest and greatest" changes and additions. These changes include documentation of new features targeted for Django's next :term:`feature -release`. For that reason, it's worth pointing out our policy to highlight -recent changes and additions to Django. +release `. For that reason, it's worth pointing out our policy +to highlight recent changes and additions to Django. We follow this policy: diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 7ca0b96d85902..cbc3b6142cbd2 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1219,7 +1219,7 @@ databases supported by Django. .. class:: SlugField(max_length=50, **options) -:term:`Slug` is a newspaper term. A slug is a short label for something, +:term:`Slug ` is a newspaper term. A slug is a short label for something, containing only letters, numbers, underscores or hyphens. They're generally used in URLs. diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index b198ebdf437c9..f45e7ba38f950 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -15,9 +15,10 @@ want to be aware of when upgrading from Django 1.10 or older versions. We've See the :doc:`/howto/upgrade-version` guide if you're updating an existing project. -Django 1.11 is designated as a :term:`long-term support release`. It will -receive security updates for at least three years after its release. Support -for the previous LTS, Django 1.8, will end in April 2018. +Django 1.11 is designated as a :term:`long-term support release +`. It will receive security updates for at least +three years after its release. Support for the previous LTS, Django 1.8, will +end in April 2018. Python compatibility ==================== diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 0947874ebd696..0e7a2da6c614e 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -17,9 +17,9 @@ See the :doc:`/howto/upgrade-version` guide if you're updating an existing project. Django 1.8 has been designated as Django's second :term:`long-term support -release`. It will receive security updates for at least three years after its -release. Support for the previous LTS, Django 1.4, will end 6 months from the -release date of Django 1.8. +release `. It will receive security updates for at +least three years after its release. Support for the previous LTS, Django 1.4, +will end 6 months from the release date of Django 1.8. Python compatibility ==================== diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index 5c08fa19c2054..e72dfefae739d 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -15,9 +15,10 @@ want to be aware of when upgrading from Django 2.1 or earlier. We've See the :doc:`/howto/upgrade-version` guide if you're updating an existing project. -Django 2.2 is designated as a :term:`long-term support release`. It will -receive security updates for at least three years after its release. Support -for the previous LTS, Django 1.11, will end in April 2020. +Django 2.2 is designated as a :term:`long-term support release +`. It will receive security updates for at least +three years after its release. Support for the previous LTS, Django 1.11, will +end in April 2020. Python compatibility ====================