Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3431064rwb; Tue, 8 Nov 2022 04:37:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM6E55s2pspGbh2tK+1e1/my7Yp4X9h1U2DP43QOsaR9zIsESQIw/bM8V1rvQL7fuM4l2srY X-Received: by 2002:a17:906:3607:b0:7ad:a798:cdc0 with SMTP id q7-20020a170906360700b007ada798cdc0mr51832025ejb.357.1667911036417; Tue, 08 Nov 2022 04:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667911036; cv=none; d=google.com; s=arc-20160816; b=SLBBC1oxkGHGb0T48gEscIHo48dsi4Y66UQKuLgee65wp4MJSy8Qp0myGk72bngB3M SQoKrOXS3ri9CkmSgID5+o7TgiQTJS7fWdfhmfwW8+FIT77WQrmIyO44R/55bdibI2WJ LZxHqzM17gUQRoayVkpAAbj64/+gAi8yt/U5vYlCO+SIYky23VGAij3BT29OeDirShfG h+5zFrZNxewc+JphJ0ZFCIozhvQuyDQ8pn7Ywu5ML9gRL6b/LrPBJd7pOrUz7DOfEJdz QVOGv31l+GCwJyHLE20TIG2ypSK0ZKP6mLVXhGqEtSAAhg7lqIHUT7JVMKt1E7GkZJAL lmbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CXsk1mCcDSCxO8pZyOxPVPpi8Y+w18c1q2hqTt7a5PE=; b=ZQhtUqEih0pUGBM3+1yEcPZJH/xGOH+UjjipVHRcop+NHU9QwVeYPZWuOOyXZFTiB6 7/m1M6yHeqwbDT6Lw2DOXrNrQaXJKBnwg4ptSQRCQK5b+/G08Lbrmts7QgL5nbuzMilC 8SuxS5baaY7S+MwalBcnFEs5dZrQo8HjfCDnIvfiqgL0jzDcwFKLvgOEI/MF9f4XRwk5 1G+/ahwSXev/fxJ0jS+h2bPpbi34bHtaQ+b7384QzRCb7ILQioYBHxUwzNx6Xz1CJLOb 3cBZscrte+YgUNdDO/Twgjx3QNwhOLZvVXSV/uCCuALAVXxhhrnWLTBRCkBKcubPh9Qf FZUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="WIpcMn/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a056402269400b00462bd784df2si14595116edd.542.2022.11.08.04.36.55; Tue, 08 Nov 2022 04:37:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="WIpcMn/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234015AbiKHL7x (ORCPT + 89 others); Tue, 8 Nov 2022 06:59:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbiKHL7w (ORCPT ); Tue, 8 Nov 2022 06:59:52 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9371E3E3 for ; Tue, 8 Nov 2022 03:59:51 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id 63so11233796iov.8 for ; Tue, 08 Nov 2022 03:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CXsk1mCcDSCxO8pZyOxPVPpi8Y+w18c1q2hqTt7a5PE=; b=WIpcMn/mwq0TzQFxTxKZt3DD2TtjK3CkAqgjRCkGCIfFkWecUeRQ5Iyv4BNNfpp/KS RIDQgo7f/xiAsG5wtV2nSeEQ3RYI6fv6k4Ju0dKGhl7W+IA3ZutcczXbL65E7kwFI7AK 5yTh32v5DWwGsGdv1MPlmV/YLv3D1I5Bpp7p0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CXsk1mCcDSCxO8pZyOxPVPpi8Y+w18c1q2hqTt7a5PE=; b=xvsdLjFpJC2Ve2XGlvxNaH/LuDhX3zejGQB5jifcPMQcjWyoOasqnz/FEEDs77IoHl OjLBWFb5j916DJcF/7OflxarReB4KymVD9lCA7CCjIG0m8t5WsOGlxum0LY/ZD9SFNHI doeI2YgucLDtNJ1t280huYq4WWsd6d76ewmoH0OeS/TyV+C1KMr0JOyYk9R3fL/k2A4K SqmoDpFBKZc4UfvFiV0JKk9cVQuxyfhpGo84m29iojvrXwTrTrYnuNfNJ8/wzYm3S0w9 8e/N2BZTIhLdYLUo1Nu9Rcxfae+G0CaNF2n2+ybZ6/iWTJJGxtwkrbiILqpK3M7G6Lzp i2OA== X-Gm-Message-State: ACrzQf2pV2wBWuAaz4cZfAkHvpJX0IAerR1BI+DsjhDQuMoQjxAEWPhx eYAwGVBqOXuQJpc5Iq6kul/oU/j925vzABADWeKnhw== X-Received: by 2002:a6b:b882:0:b0:6b7:56c3:b602 with SMTP id i124-20020a6bb882000000b006b756c3b602mr32443363iof.5.1667908791200; Tue, 08 Nov 2022 03:59:51 -0800 (PST) MIME-Version: 1.0 References: <20221027104406.549734-1-daniel.vetter@ffwll.ch> <87tu3n6cb2.fsf@meer.lwn.net> In-Reply-To: From: Daniel Vetter Date: Tue, 8 Nov 2022 12:59:39 +0100 Message-ID: Subject: Re: [PATCH] docs/sphinx: More depth in the rtd sidebar toc To: Jonathan Corbet Cc: DRI Development , LKML , Daniel Vetter , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Nov 2022 at 21:06, Daniel Vetter wrote: > > On Fri, 28 Oct 2022 at 20:19, Jonathan Corbet wrote: > > > > Daniel Vetter 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 > > > Cc: Jonathan Corbet > > > Cc: linux-doc@vger.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? > > [sorry took a bit longer to get back to this] > > Hm looks pretty, but more in a print style than using it dynamically, > you can't really click through the sidebar toc at all to quickly find > something, and if you're wrong, navigate up a few levels again. It's > just the toc for exactly the local document, nothing else at all. rtd > theme always gives you the full toc all the way up, and if you have > epic patience could actually give you the full toc on every document > (but that's probably not a good idea for the kernel). Do you need me > to send the rebased version or can you smash this one in? > > btw on today's linux-next the sphinx.rst page isn't updated with the > new default theme choice of alabaster. That seems to have been > forgotten. Sorry got confused on this and looked at the wrong tab/build output locally, it's good. Anyway I sent out a rebased version of the rtd patch, I do like that sidebar a lot more for navigating the docs :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch