Documentation: dev-tools: properly format ToC headingss
authorVegard Nossum <vegard.nossum@oracle.com>
Fri, 27 Oct 2023 08:18:24 +0000 (10:18 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 17 Nov 2023 20:05:26 +0000 (13:05 -0700)
"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: gaochao <gaochao49@huawei.com>
Cc: Yanteng Si <siyanteng@loongson.cn>
Cc: Wu XiangCheng <bobwxc@email.cn>
Cc: Fangrui Song <maskray@google.com>
Cc: Wan Jiabing <wanjiabing@vivo.com>
Cc: Alex Shi <alexs@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-6-vegard.nossum@oracle.com
Documentation/dev-tools/index.rst
Documentation/translations/zh_CN/dev-tools/index.rst

index 6b0663075dc04e5d8baed21b6f6a6f36b930beab..3d2286c683bc99575b18746ee5529d5d64dceff5 100644 (file)
@@ -10,11 +10,8 @@ whole; patches welcome!
 A brief overview of testing-specific tools can be found in
 Documentation/dev-tools/testing-overview.rst
 
-.. class:: toc-title
-
-          Table of contents
-
 .. toctree::
+   :caption: Table of contents
    :maxdepth: 2
 
    testing-overview
index 02577c379007ce7bcadbad56d12f9804622435de..c2db3e566b1be80d934da53919ca855c17255c5a 100644 (file)
 有关测试专用工具的简要概述,参见
 Documentation/translations/zh_CN/dev-tools/testing-overview.rst
 
-.. class:: toc-title
-
-          目录
-
 .. toctree::
+   :caption: 目录
    :maxdepth: 2
 
    testing-overview