[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87tu3n6cb2.fsf@meer.lwn.net>
Date: Fri, 28 Oct 2022 12:19:29 -0600
From: Jonathan Corbet <corbet@....net>
To: Daniel Vetter <daniel.vetter@...ll.ch>,
DRI Development <dri-devel@...ts.freedesktop.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Daniel Vetter <daniel.vetter@...el.com>,
linux-doc@...r.kernel.org
Subject: Re: [PATCH] docs/sphinx: More depth in the rtd sidebar toc
Daniel Vetter <daniel.vetter@...ll.ch> writes:
> We love to nest our documenation for good structure, but that means
> the table of contents needs to keep up or you can't navigate them.
>
> Realized this trying to find the drm property documentation, which
> with some shuffling around disappeared. Why I didn't realize we can do
> this earlier, no idea.
>
> Since the relevant parts of the toc are only loaded if you're in the
> right .html file there's no harm in going all the way to unlimited.
>
> Note that this has no impact on the classic theme (which doesn't have
> the sidebar) nor on the various :toctree: rendered inline in the
> output.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@...el.com>
> Cc: Jonathan Corbet <corbet@....net>
> Cc: linux-doc@...r.kernel.org
> ---
> Documentation/conf.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/conf.py b/Documentation/conf.py
> index 934727e23e0e..5dc141c66726 100644
> --- a/Documentation/conf.py
> +++ b/Documentation/conf.py
> @@ -240,6 +240,10 @@ if html_theme == 'sphinx_rtd_theme' or html_theme == 'sphinx_rtd_dark_mode':
> # Add color-specific RTD normal mode
> html_css_files.append('theme_rtd_colors.css')
>
> + html_theme_options = {
> + 'navigation_depth': -1,
> + }
> +
> except ImportError:
> html_theme = 'classic'
So this patch isn't against docs-next, and applies to the RTD theme,
which is no longer the default. I have no objection to it, but have you
looked at how your docs come out with the alabaster theme?
Thanks,
jon
Powered by blists - more mailing lists