[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231027081830.195056-5-vegard.nossum@oracle.com>
Date: Fri, 27 Oct 2023 10:18:23 +0200
From: Vegard Nossum <vegard.nossum@...cle.com>
To: linux-doc@...r.kernel.org, Jonathan Corbet <corbet@....net>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Jani Nikula <jani.nikula@...el.com>, linux-kernel@...r.kernel.org,
Vegard Nossum <vegard.nossum@...cle.com>,
Stephan Mueller <smueller@...onox.de>
Subject: [PATCH RFC 04/11] 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@...nel.org>
Cc: Stephan Mueller <smueller@...onox.de>
Signed-off-by: Vegard Nossum <vegard.nossum@...cle.com>
---
Documentation/crypto/api.rst | 5 +----
Documentation/crypto/index.rst | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/Documentation/crypto/api.rst b/Documentation/crypto/api.rst
index b91b31736df8..ff31c30561d4 100644
--- a/Documentation/crypto/api.rst
+++ b/Documentation/crypto/api.rst
@@ -1,11 +1,8 @@
Programming Interface
=====================
-.. class:: toc-title
-
- Table of contents
-
.. toctree::
+ :caption: Table of contents
:maxdepth: 2
api-skcipher
diff --git a/Documentation/crypto/index.rst b/Documentation/crypto/index.rst
index da5d5ad2bdf3..10647c5ae2ea 100644
--- a/Documentation/crypto/index.rst
+++ b/Documentation/crypto/index.rst
@@ -9,11 +9,8 @@ This documentation outlines the Linux kernel crypto API with its
concepts, details about developing cipher implementations, employment of the API
for cryptographic use cases, as well as programming examples.
-.. class:: toc-title
-
- Table of contents
-
.. toctree::
+ :caption: Table of contents
:maxdepth: 2
intro
--
2.34.1
Powered by blists - more mailing lists