Commit 1f821382 authored by Vegard Nossum's avatar Vegard Nossum Committed by Jonathan Corbet

crypto: 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: Stephan Mueller <smueller@chronox.de>
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20231027081830.195056-5-vegard.nossum@oracle.com
parent a37a4457
Programming Interface Programming Interface
===================== =====================
.. class:: toc-title
Table of contents
.. toctree:: .. toctree::
:caption: Table of contents
:maxdepth: 2 :maxdepth: 2
api-skcipher api-skcipher
......
...@@ -9,11 +9,8 @@ This documentation outlines the Linux kernel crypto API with its ...@@ -9,11 +9,8 @@ This documentation outlines the Linux kernel crypto API with its
concepts, details about developing cipher implementations, employment of the API concepts, details about developing cipher implementations, employment of the API
for cryptographic use cases, as well as programming examples. for cryptographic use cases, as well as programming examples.
.. class:: toc-title
Table of contents
.. toctree:: .. toctree::
:caption: Table of contents
:maxdepth: 2 :maxdepth: 2
intro intro
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment