media: doc: properly format ToC headings

"class:: toc-title" was a workaround for older Sphinx versions that are
no longer supported.

The canonical way to add a heading to the ToC is to use :caption:.
Do that.

Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20231027081830.195056-10-vegard.nossum@oracle.com
This commit is contained in:
Vegard Nossum 2023-10-27 10:18:28 +02:00 committed by Jonathan Corbet
parent 0419ee1b62
commit 58af664644
7 changed files with 7 additions and 42 deletions

View File

@ -10,13 +10,8 @@ Part V - Consumer Electronics Control API
This part describes the CEC: Consumer Electronics Control
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 5
:numbered:

View File

@ -21,13 +21,8 @@ more details.
For more details see the file COPYING in the source distribution of Linux.
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 5
:numbered:

View File

@ -27,13 +27,8 @@ Part II - Digital TV API
**Version 5.10**
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 5
:numbered:

View File

@ -21,13 +21,8 @@ Documentation/driver-api/media/index.rst
media devices;
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 1
intro

View File

@ -7,13 +7,8 @@
Part IV - Media Controller API
##############################
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 5
:numbered:

View File

@ -7,13 +7,8 @@
Part III - Remote Controller API
################################
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:maxdepth: 5
:numbered:

View File

@ -11,13 +11,8 @@ This part describes the Video for Linux API version 2 (V4L2 API) specification.
**Revision 4.5**
.. only:: html
.. class:: toc-title
Table of Contents
.. toctree::
:caption: Table of Contents
:numbered:
:maxdepth: 5