Doc: Replace the deprecated highlightlang directive by highlight. (#13377)

highlightlang is deprecated since April 2018 in Sphinx.
See https://github.com/sphinx-doc/sphinx/pull/4845
This commit is contained in:
Stéphane Wirtel 2019-05-17 11:55:34 +02:00 committed by Kushal Das
parent fed02e15b3
commit cbb6484573
74 changed files with 76 additions and 76 deletions

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _abstract: .. _abstract:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _allocating-objects: .. _allocating-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _apiabiversion: .. _apiabiversion:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _arg-parsing: .. _arg-parsing:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _boolobjects: .. _boolobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. index:: .. index::
single: buffer protocol single: buffer protocol

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _bytearrayobjects: .. _bytearrayobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _bytesobjects: .. _bytesobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _capsules: .. _capsules:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _cell-objects: .. _cell-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _codeobjects: .. _codeobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _complexobjects: .. _complexobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _concrete: .. _concrete:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _contextvarsobjects: .. _contextvarsobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _string-conversion: .. _string-conversion:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _coro-objects: .. _coro-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _datetimeobjects: .. _datetimeobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _descriptor-objects: .. _descriptor-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _dictobjects: .. _dictobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _exceptionhandling: .. _exceptionhandling:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _fileobjects: .. _fileobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _floatobjects: .. _floatobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _function-objects: .. _function-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _supporting-cycle-detection: .. _supporting-cycle-detection:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _gen-objects: .. _gen-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _importing: .. _importing:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _initialization: .. _initialization:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _api-intro: .. _api-intro:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _iterator: .. _iterator:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _iterator-objects: .. _iterator-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _listobjects: .. _listobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _longobjects: .. _longobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _mapping: .. _mapping:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _marshalling-utils: .. _marshalling-utils:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _memory: .. _memory:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _memoryview-objects: .. _memoryview-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _instancemethod-objects: .. _instancemethod-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _moduleobjects: .. _moduleobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _noneobject: .. _noneobject:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _number: .. _number:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
Old Buffer Protocol Old Buffer Protocol
------------------- -------------------

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _object: .. _object:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _newtypes: .. _newtypes:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _countingrefs: .. _countingrefs:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _reflection: .. _reflection:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _sequence: .. _sequence:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _setobjects: .. _setobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _slice-objects: .. _slice-objects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _stable: .. _stable:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _common-structs: .. _common-structs:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _os: .. _os:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _tupleobjects: .. _tupleobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _typeobjects: .. _typeobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _type-structs: .. _type-structs:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _unicodeobjects: .. _unicodeobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _utilities: .. _utilities:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _veryhigh: .. _veryhigh:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _weakrefobjects: .. _weakrefobjects:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _building: .. _building:
@ -20,7 +20,7 @@ The initialization function has the signature:
It returns either a fully-initialized module, or a :c:type:`PyModuleDef` It returns either a fully-initialized module, or a :c:type:`PyModuleDef`
instance. See :ref:`initializing-modules` for details. instance. See :ref:`initializing-modules` for details.
.. highlightlang:: python .. highlight:: python
For modules with ASCII-only names, the function must be named For modules with ASCII-only names, the function must be named
``PyInit_<modulename>``, with ``<modulename>`` replaced by the name of the ``PyInit_<modulename>``, with ``<modulename>`` replaced by the name of the
@ -43,7 +43,7 @@ function corresponding to the filename is found.
See the *"Multiple modules in one library"* section in :pep:`489` for details. See the *"Multiple modules in one library"* section in :pep:`489` for details.
.. highlightlang:: c .. highlight:: c
Building C and C++ Extensions with distutils Building C and C++ Extensions with distutils
============================================ ============================================

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _embedding: .. _embedding:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _extending-intro: .. _extending-intro:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _new-types-topics: .. _new-types-topics:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _defining-new-types: .. _defining-new-types:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _building-on-windows: .. _building-on-windows:

View File

@ -1,6 +1,6 @@
:tocdepth: 2 :tocdepth: 2
.. highlightlang:: none .. highlight:: none
.. _windows-faq: .. _windows-faq:

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
********************** **********************
Argument Clinic How-To Argument Clinic How-To

View File

@ -1,4 +1,4 @@
.. highlightlang:: c .. highlight:: c
.. _cporting-howto: .. _cporting-howto:

View File

@ -1,4 +1,4 @@
.. highlightlang:: none .. highlight:: none
.. _install-index: .. _install-index:

View File

@ -1,4 +1,4 @@
.. highlightlang:: none .. highlight:: none
.. _installing-index: .. _installing-index:

View File

@ -8,7 +8,7 @@
-------------- --------------
.. highlightlang:: none .. highlight:: none
**This module is automatically imported during initialization.** The automatic **This module is automatically imported during initialization.** The automatic
import can be suppressed using the interpreter's :option:`-S` option. import can be suppressed using the interpreter's :option:`-S` option.

View File

@ -1,4 +1,4 @@
.. highlightlang:: none .. highlight:: none
.. _history-and-license: .. _history-and-license:

View File

@ -1,4 +1,4 @@
.. highlightlang:: sh .. highlight:: sh
.. ATTENTION: You probably should update Misc/python.man, too, if you modify .. ATTENTION: You probably should update Misc/python.man, too, if you modify
this file. this file.

View File

@ -1,4 +1,4 @@
.. highlightlang:: sh .. highlight:: sh
.. _using-on-unix: .. _using-on-unix:

View File

@ -1,4 +1,4 @@
.. highlightlang:: none .. highlight:: none
.. _using-on-windows: .. _using-on-windows: