Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2593503ybl; Mon, 20 Jan 2020 05:57:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzRUrwLfR8JEmGc4krJE8BLfBa76hG7HcAdpy7PPJ9duR1mvhBnTl4M/OLCJe0FbIbV7IZ2 X-Received: by 2002:a9d:478:: with SMTP id 111mr15792885otc.359.1579528650313; Mon, 20 Jan 2020 05:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579528650; cv=none; d=google.com; s=arc-20160816; b=TQeqfvLkeydmXnyx4mZyhHzV2YDZ7E3q7VyHAaMfLZLPqhywFasC7sC76h2hE+bL/U bsywHLbwxWBZ0PEG4xC6Yblc5CPFzwbhqGU4NXYEMIyBRWMhoKANwb4NZ5HXf/iglFwa LLmqaCMIPHKMcJcEyt2o04mCh4TZ4UmhEFYGuMrz1fjoSmDFnvp7KXSuzur8YnrDHnTe hLX5z7nzWHG1QI9dF19FVI6fVItmx7FAv1iYstcoc5f2uxFr3hVubQm70qXKeBQKDPqi vheJ0IT/eGcY7FP4Lgj9te5Tx0sb//ZcfFea69Ftky1VfTKhXp/U55bNtjD/w7c/EjbV gV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=dM5h3HPZIazFwJWzWAvv3C2vgaPaMQHbR8lta2E/Vco=; b=r9+AsIbiP+cdw1UaRXOdjLE9XgG1QeTQmGVPypObGSG5ZQiQDh2LyrFbtWuLYs0+Ys TEbywClxseIMVpF6xpzGzqD0pDRaVuPXubekryh/7BBgtSrVHlQyj/CuKxniREmcOfEg LPxj41U89FKkr42Ylr7Hl9bAjCqFLSU15UEauOsLK5qVxllzHu5B5ZWu0VqfPACn/Vzy QQ9va8jDuAO9YTWAmfhUyCfy0OenViddWYY5kK5A13UH1hx+DFjp4z9d9nh9onrLM7+A n3ZG0MNjTOO8jNoTfdvGu5kJ+0fCKkgdMNunNC6YVflAi1zja20ZRVTu9qYIJUaOOJeW Myuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si13110315otk.45.2020.01.20.05.57.17; Mon, 20 Jan 2020 05:57:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbgATN4V (ORCPT + 99 others); Mon, 20 Jan 2020 08:56:21 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:33958 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgATN4V (ORCPT ); Mon, 20 Jan 2020 08:56:21 -0500 Received: from [109.168.11.45] (port=46296 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1itXXP-0004oK-3X; Mon, 20 Jan 2020 14:56:19 +0100 Subject: Re: [PATCH 01/26] docs: i2c: sort index logically From: Luca Ceresoli To: Jean Delvare Cc: linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang , Peter Rosin , linux-kernel@vger.kernel.org References: <20200105224006.10321-1-luca@lucaceresoli.net> <20200105225012.11701-1-luca@lucaceresoli.net> <20200120100850.001e032b@endymion> Message-ID: <9073e6c2-1f82-6067-0d2a-3e8d32dca89a@lucaceresoli.net> Date: Mon, 20 Jan 2020 14:56:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 20/01/20 10:22, Luca Ceresoli wrote: > Hi Jean, > > On 20/01/20 10:08, Jean Delvare wrote: >> Hi Luca, >> >> On Sun, 5 Jan 2020 23:49:47 +0100, Luca Ceresoli wrote: >>> The index page currently lists sections in alphabetical file order without >>> caring about their content. Sort sections based on their content logically, >>> according to the following structure: >>> >>> * Intro to I2C/SMBus and their usage in Linux: summary, i2c-protocol, >>> smbus-protocol, instantiating-devices, busses/index, i2c-topology, >>> muxes/i2c-mux-gpio >>> * Implementing drivers: writing-clients, dev-interface, >>> dma-considerations, fault-codes, functionality >>> * Debugging: gpio-fault-injection, i2c-stub >>> * Slave I2C: slave-interface, slave-eeprom-backend >>> * Advanced: ten-bit-addresses >>> * Obsolete info: upgrading-clients, old-module-parameters >> >> Good idea. I wonder, would there be a way to materialize these group >> names in the documentation itself? I found it useful when reviewing the >> patch, but in the long term it would be even more useful if the end >> readers would see them too. > > I had the same idea, but didn't find an obvious way to do it with the > ReST/Sphynx syntax. I have also browsed through a few index pages for > other subsystems and they all have a flat list too, so for the moment I > gave up. The best way I could find is in Documentation/core-api/index.rst (https://www.kernel.org/doc/html/latest/core-api/index.html). I don't like very much how the .rst source looks like, but AFAICT this seems like "the" way of doing it. Unless there are better options, I'll try this syntax in v2. -- Luca