Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3693002rwo; Mon, 24 Jul 2023 15:21:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlG57l5iCE903a2Oh0DFLT9MhhUTNAflWT6qHDEiyGGLDWncHqAmU1pjIwnWlHwYpjxukjx7 X-Received: by 2002:ac2:5b4b:0:b0:4fb:829b:197c with SMTP id i11-20020ac25b4b000000b004fb829b197cmr5617048lfp.52.1690237290448; Mon, 24 Jul 2023 15:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690237290; cv=none; d=google.com; s=arc-20160816; b=UUeIDDxHWVXoIb82uUx9zuce7coIdheFu4pq/VCS3i3x0QG+kBBworXrRfa8Sw9/PB P06z1S24lReQDGkqTpWW0hgYOoo8R1qW9mdwhKwEXViXfaGvha70yXSLjRCYXBvkmssL 00qVpOeVsSRcvkzLDDpcU7Gt5tXNQmfQJ6KzZx+7XrZdNoM77b0bWj1czfR9X/ACCaEK Plp3lmZ9qhSHjmE9+Sz9v+4GRYFelGIaYcYILmzh3b/L5oz5c0yGcgsY+mp57nwiaKo/ kqRDmSHga+IgldsFAYXlSBUsp70t5Q9Hk4Ory0Yg5jRXubj5MmSYKqKzcaQdjRZswF3P QBGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=gaNKVqyvP22L4mM+8WXVkl4QkXFivhR0y8i1kXszzPQ=; fh=UoZhtEnLKLyr96bszVgOHSee+ESan1BG7yQQMWgS9fk=; b=hL8LDzXJwT5k5vcrrrjIyklXpbBOLhJb60w7aZ0zAG8XRavaAltR6rNf9Q1DblSi1B 1cglWxRBl/rnGydiD2VTwDsN4XrobiaJo5QQam86+4M7HpnGvLtp2o9zyhPH8J1gjCkH isyqEZJdKQheyKYQN8X2aoF1cbNstwgce+5ab+rpELQ9AFoKPPMwwxFWfPyl6vfkXxm0 Zl/Iy6bBuWjrljb7fmCaEBaD+jbpglVZ/CN3W+eSS53mCS0UEHdBzhQHc9lqa/6xrnCr ZRTyg6ZXx0kxZZd01nGbREGJt1je/T9W+nFgRzC9CEWSzyu9dVUROSkbr8DnGAzXB5Kw v5qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Imyn4jnO; 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 jt8-20020a170906dfc800b00993629db66csi7176138ejc.226.2023.07.24.15.21.03; Mon, 24 Jul 2023 15:21:30 -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=@lwn.net header.s=20201203 header.b=Imyn4jnO; 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 S231149AbjGXVVr (ORCPT + 99 others); Mon, 24 Jul 2023 17:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbjGXVVq (ORCPT ); Mon, 24 Jul 2023 17:21:46 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D57AB1737; Mon, 24 Jul 2023 14:21:40 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 1603A733; Mon, 24 Jul 2023 21:21:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 1603A733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1690233700; bh=gaNKVqyvP22L4mM+8WXVkl4QkXFivhR0y8i1kXszzPQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Imyn4jnOBa86K/OaOKITI/KBfz9yvh0y9ALfYriy5qxu4LN+yV24qqe3iRsQWGXet Z0x30JO9siMaPYMDEly+xc1qoNp45ZaUQ1D85j9tUoC6C5NVbGLODqkfajJaPYXs0N KFT7VVC9eI8oduNvf/yvbgOi9hQ5JCJuSm9uDzMiQMhkAigNV1uBCRBERqqny9mtXY VcQdMGxkwxZcXHjLPVM7yP2kJyq7AqvEX51t1e0q6hb47Ba7f6fiodQUqvxe7mcXT2 a/TsUs0wUQQIY8VUy/Uurzj1/RQMIhvRoz77GY4o2+QyPG0ySzzrSOxjoLuOcPIxdP 3iGu6Y+qoYdXw== From: Jonathan Corbet To: 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" Cc: Costa Shulyupin Subject: Re: [RFC PATCH] rework top page and organize toc on the sidebar In-Reply-To: <20230724193118.2204673-1-costa.shul@redhat.com> References: <20230724193118.2204673-1-costa.shul@redhat.com> Date: Mon, 24 Jul 2023 15:21:39 -0600 Message-ID: <87ila9atuk.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 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. jon