Re: [PATCH v2] docs: trace: Refactor index documentation

From: Steven Rostedt
Date: Wed Feb 12 2025 - 09:51:13 EST


On Wed, 12 Feb 2025 18:10:44 +0700
Bagas Sanjaya <bagasdotme@xxxxxxxxx> wrote:

> > > +Introduction to Tracing
> > > +-----------------------
> > > +
> > > +This section provides an overview of Linux tracing mechanisms
> > > +and debugging approaches.
> > >
> > > .. toctree::
> > > - :maxdepth: 2
> > > + :maxdepth: 1
> >
> > I don't really know what the maxdepth gives here, but there was no mention
> > in the change log why it had to be converted from 2 to 1.
>
> :maxdepth: specifies heading levels depth of the toctree. In this case,
> the author wants only doc titles (hence 1), whereas 2 also includes
> second-level (section) headings.

As I'm the original author, I would like to know why there was a change.

-- Steve