summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-06 08:05:02 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-06-02 10:57:25 +0200
commit79baf338aef2ac21d3d29ee56e85f69678eef1a1 (patch)
tree2609f9b751d0eade5d998652740d086c5bbfa40a /docs
parent151a83e92c1a457baf028160ed9191405b869df6 (diff)
[2.2.x] Fixed highlightlang deprecation warning on Sphinx 1.8+.
Backport of 678f958ef972bf9be402332537149ca0884035ba from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/language.txt2
-rw-r--r--docs/topics/i18n/translation.txt8
-rw-r--r--docs/topics/security.txt2
-rw-r--r--docs/topics/templates.txt2
4 files changed, 7 insertions, 7 deletions
diff --git a/docs/ref/templates/language.txt b/docs/ref/templates/language.txt
index 1287f012c2..540d6538f8 100644
--- a/docs/ref/templates/language.txt
+++ b/docs/ref/templates/language.txt
@@ -34,7 +34,7 @@ or Jinja2_, you should feel right at home with Django's templates.
Templates
=========
-.. highlightlang:: html+django
+.. highlight:: html+django
A template is simply a text file. It can generate any text-based format (HTML,
XML, CSV, etc.).
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 3aa235b202..24f42a1a3c 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -553,7 +553,7 @@ Similar access to this information is available for template code. See below.
Internationalization: in template code
======================================
-.. highlightlang:: html+django
+.. highlight:: html+django
Translations in :doc:`Django templates </ref/templates/language>` uses two template
tags and a slightly different syntax than in Python code. To give your template
@@ -954,7 +954,7 @@ There are also simple filters available for convenience:
Internationalization: in JavaScript code
========================================
-.. highlightlang:: python
+.. highlight:: python
Adding translations to JavaScript poses some problems:
@@ -1041,7 +1041,7 @@ precedence.
Using the JavaScript translation catalog
----------------------------------------
-.. highlightlang:: javascript
+.. highlight:: javascript
To use the catalog, just pull in the dynamically generated script like this:
@@ -1824,7 +1824,7 @@ redirected in the ``redirect_to`` context variable.
Explicitly setting the active language
--------------------------------------
-.. highlightlang:: python
+.. highlight:: python
You may want to set the active language for the current session explicitly. Perhaps
a user's language preference is retrieved from another system, for example.
diff --git a/docs/topics/security.txt b/docs/topics/security.txt
index 549b473988..1a15545512 100644
--- a/docs/topics/security.txt
+++ b/docs/topics/security.txt
@@ -10,7 +10,7 @@ on securing a Django-powered site.
Cross site scripting (XSS) protection
=====================================
-.. highlightlang:: html+django
+.. highlight:: html+django
XSS attacks allow a user to inject client side scripts into the browsers of
other users. This is usually achieved by storing the malicious scripts in the
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index b993ef4d0e..a2579b41b4 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -657,7 +657,7 @@ creating an object that specifies the following attributes:
The Django template language
============================
-.. highlightlang:: html+django
+.. highlight:: html+django
Syntax
------