Skip to content

Commit

Permalink
doc: misc-device: properly format ToC heading
Browse files Browse the repository at this point in the history
"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: Greg Kroah-Hartman <[email protected]>
Cc: Julien Panis <[email protected]>
Signed-off-by: Vegard Nossum <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
vegard authored and Jonathan Corbet committed Nov 17, 2023
1 parent 0dfbd35 commit 0419ee1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Documentation/misc-devices/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ Assorted Miscellaneous Devices Documentation
This documentation contains information for assorted devices that do not
fit into other categories.

.. class:: toc-title

Table of contents

.. toctree::
:caption: Table of contents
:maxdepth: 2

ad525x_dpot
Expand Down

0 comments on commit 0419ee1

Please sign in to comment.