Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3972142rwo; Mon, 24 Jul 2023 21:20:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEBHgmc/L6sPCDA5oDO9wYPZb7W1OJ0ztTSh2h463M+570iCYK+Pn84aw6A/lfVLlxP2QWO X-Received: by 2002:a17:907:75ef:b0:994:5350:5a2b with SMTP id jz15-20020a17090775ef00b0099453505a2bmr10572525ejc.62.1690258807217; Mon, 24 Jul 2023 21:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690258807; cv=none; d=google.com; s=arc-20160816; b=yXw6jhmgoQXHlMpn+5JZhziz3jRL5+UYnji2O/MiwTMCcctwC/QBYb94OPdQgTJuOE 1wklTW/PdECP2RCbDYaT/K5vKeOldDZxU5CP+bisO6nukwUm5+/OmzffT2w2Ekx9dMhe YO5wXf+Kt8U/9HC5FiFi7LWkP6VMnfZP1x0jSHu0acdMfKPj2ytlWj/Xiff8Cb1pHaP8 xzPWMKUJ0J3riqlOuKQrKjsUb3Vm/RgYV+iVIeuW4smCLwsFJi9vHwjaqdESg441jlfs UPCL5YzNgeaxs5a9Ocy0kOtGUSAbwnGgY2v6JSyAMK2WZHD5+w9aEelGsOfnUw3kna8l FqgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=oa+so10xLETAgc5pdBX8v/zloJHSFamiykfxB9L3iNQ=; fh=WAkmnBfqzQC7jgJZsGvLl4B5QNVhD5jZiYPCtth4JGg=; b=Ino/XneFmvWSo+eJuOGfb3Yr7hQnhWRIXy8vVz97gbEQoq6nvXgkMhaR5633SoBQYo ozfltlz5DcF3Szn4mkxpNJvsTMOWO044rywogXu+B0uGxTPioL0RrbMZJxdEnkTXn/Dm 8UEaorf3qEjZTSPN4+gEC/CIgrcjBag8WTbqJOaaJuaO6U4KUFAmUNVQwXinMrUEb5U4 zKyZcUOFUb+osx8VG1e4ZqMCnIMbm96/N2H1Mqpp7CmiyB6KjLVCtxe9TfTL93m265wt s9zZbA7XZhPS1NQcmrXwtv2SJhy7Xwf5WsGGOXf+SG4Lp3PaJaMh2FcE+UsbgZyQm5Dd 5OoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pqw9oioa; 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 qo12-20020a170907212c00b00977e4a1fe32si7355629ejb.539.2023.07.24.21.19.42; Mon, 24 Jul 2023 21:20:07 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=pqw9oioa; 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 S229678AbjGYDFf (ORCPT + 99 others); Mon, 24 Jul 2023 23:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbjGYDFP (ORCPT ); Mon, 24 Jul 2023 23:05:15 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4305210C3; Mon, 24 Jul 2023 20:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=oa+so10xLETAgc5pdBX8v/zloJHSFamiykfxB9L3iNQ=; b=pqw9oioaugNc/2kx9y0xlJ9NId jyWlek+X1AoKk0llItmIC3Bf3mzcoWu0ZTlj6G2sYvsHiO6+UHsis4MxPhQujAYnQ0Z42oQw3MOUm aT1/QNOaq2uLaY9aJkIkqTjTvcxMB7aL12fQ/Vc3M2yGTqobvXOkxeikSUdxkM1cr1WxiIOdyE7ny +Gqkh6ljwnDBIToS47UTxIXHDk8B9zX34r2/93tHSoD4aLc9GQOhHrL10cFO7Dxj7xxU3c6KCEofm 0GPJb3RuDytDWvYT1xQclal3ZH3bsRt6VE4SnFbBhLygs70kHMgmJ+w7zzOo3Q/2D610I+JeyZFt3 roNC6HaA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qO8M8-005zR5-1M; Tue, 25 Jul 2023 03:05:00 +0000 Message-ID: <9fa8e67e-e46b-074d-8406-bfd11303e95f@infradead.org> Date: Mon, 24 Jul 2023 20:04:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH] rework top page and organize toc on the sidebar Content-Language: en-US To: Jonathan Corbet , Costa Shulyupin , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Benno Lossin , "open list:DOCUMENTATION" , open list , "open list:DOCUMENTATION PROCESS" , "open list:RUST" References: <20230724193118.2204673-1-costa.shul@redhat.com> <87ila9atuk.fsf@meer.lwn.net> From: Randy Dunlap In-Reply-To: <87ila9atuk.fsf@meer.lwn.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 7/24/23 14:21, Jonathan Corbet wrote: > Costa Shulyupin writes: > >> Template {{ toctree(maxdepth=3) }} in >> Documentation/sphinx/templates/kernel-toc.html >> uses directives toctree and doesn't use sections on the top page >> Documentation/index.rst >> to generate expandable toc on the sidebar. >> >> BTW, other template {{ toc }} uses only sections, and doesn't >> use directives toctree. >> >> Summary of changes: >> - split top page index.rst to several pages >> - convert sections of Documentation/index.rst to hierarchical toctree >> - vertical bars '|' add empty lines >> >> Benefits: >> - collapsed toc is just seven short lines length >> - toc is expandable >> >> References: >> - https://www.sphinx-doc.org/en/master/development/templating.html#toctree >> - https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree >> - https://www.sphinx-doc.org/en/master/development/templating.html#toc >> - https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#sections >> - https://sphinx-rtd-theme.readthedocs.io/ > > What is the purpose of all these links in a patch changelog? > > This patch is somewhat difficult to apply, as a result of: > >> Content-Type: text/plain; charset=true I didn't have any problem applying and testing it. > But the real problem is that you seem to have ignored my last message. > The purpose of the front page isn't to create a nice-looking sidebar, it > is the entry point to our documentation as a whole. I am all for a > better sidebar, but this is not the way to do it. Regardless of what the purpose of the front page is, I prefer this one from Costa. The other one is a huge mess. -- ~Randy