]> Gentwo Git Trees - linux/.git/commit
tools: docs: parse_data_structs.py: drop contents header
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 1 Oct 2025 14:49:24 +0000 (16:49 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 17 Oct 2025 19:56:59 +0000 (13:56 -0600)
commitba99100687464b2b2f13a920c7d2cffbe8cac5c2
treee07445c197febbeb2c703ace23ec7dee2175d63b
parent3a8660878839faadb4f1a6dd72c3179c1df56787
tools: docs: parse_data_structs.py: drop contents header

When used in practice, one may want to have multiple header
files on a single rst file, like:

***********************
Digital TV uAPI symbols
***********************

.. contents:: Table of Contents
   :depth: 2
   :local:

Frontend
========

.. kernel-include:: include/uapi/linux/dvb/frontend.h
    :generate-cross-refs:
    :toc:

Demux
=====

.. kernel-include:: include/uapi/linux/dvb/dmx.h
    :generate-cross-refs:
    :toc:

...

So, don't add ..contents:: here.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <4bf353e5248133a3b0abd82519a38453402fe7c6.1759329363.git.mchehab+huawei@kernel.org>
tools/docs/lib/parse_data_structs.py