Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2356703ybh; Fri, 24 Jul 2020 10:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjMXCYoCFnzmvGJ0fOV05VFcBfQxMG9szu/9izmERPskq7U2KR1CZxGhromL32GZxqDfjl X-Received: by 2002:a50:f0c6:: with SMTP id a6mr9692057edm.374.1595612575634; Fri, 24 Jul 2020 10:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595612575; cv=none; d=google.com; s=arc-20160816; b=SJHYWX+stw7//j4y0t2HJRtAONiUHjjkwPFn4Jym4qR2jNVRKJDWwndUBQ1O4qZ91+ bTzlH913atEwd2VjZRKkufG3vLw0LmGEun7SZ5PAfxp4bU7rpr9fZvxAjX8jE9xvLRQl SXv11GFKwDc6T9sSnyf0Z+Q3CEylQTBlgDVfo68Wf/oUtQvAk5bXX6MR9OeSJ5mJhLcW 9uXyhpZXc+rBQH4lSpIrg2Evplvo/OdF16KBljnK4B/7Qi+RZRQ8VzagqdfHWf+Ctq9v f7DKXK8S783eA1DprIX8m0t+DEb4VTO5u32ld3200f4rpCX7x2SUj8+tCCcYU+3sDrup iztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FqA68UqnOeQNPrtAxIPD6HxDZJOq+LeV5TLg5WJK564=; b=E49CD3TQkZtJzut9w4oEf7SeTcU/ky/4SMjTlTtxGj2awuTCcG5vqhAe1mMVEstoos 7BKOhiYm411JxACrsmzVUNbmVjFip9AejnjNyO71p9aAfM52JESzeakQ4cEvzuW0bp7X yXU1fnhFibm8UD88J/+qrHuZlto+ZIoU+0XFTLHQF64FFUC/3EBoWZCitUKIwFN9pFVU XDL5jHrOfbIUq8swmqQBEG6bP/WfzjvizgYGHM6TuJzQJFeIyQWu5Q9cqsgXAbE4nhvS qsJ3g93A8NzZfoQU1v+xUPxXtl4Kb1/qGdhOVajZJHfRcnFlgbyTUn1tdcaNhz65fwbN UvFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=tTM2agWt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si876345edw.577.2020.07.24.10.42.32; Fri, 24 Jul 2020 10:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=tTM2agWt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbgGXRlg (ORCPT + 99 others); Fri, 24 Jul 2020 13:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbgGXRlf (ORCPT ); Fri, 24 Jul 2020 13:41:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46C75C0619D3; Fri, 24 Jul 2020 10:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FqA68UqnOeQNPrtAxIPD6HxDZJOq+LeV5TLg5WJK564=; b=tTM2agWtok77q/6gAZ99y3VZr6 bJ0GpUJIBK3iWQ1er3crAkmqP1V/ffr+nLRMlz7aBe+8mO3OYV8Vz8duluPsXkYCCSYSclR1x5ydI 6mKtUi6KX6vKb6ir8tBXUqdfdsqYtWJTMBtCVTsVWEtD1OkTuki0BXgg5vgxcbhWL3iqKx3FPZHP0 1TY1+2QjUlGuImoOaw/JHxhT5LsSZmIsVuwENnU+Jz1NDhiAVux41JQyXP67q78NjrgKOleVuoSey rEPhOT7zK3iLRsIxwHtZQSgRgLLzMfADFF1gBApJsjKBJjROavdV6S+33kKf+yE4dAXD/mhkw4hQn amToRNUQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jz1hK-0006ef-Qi; Fri, 24 Jul 2020 17:41:30 +0000 Date: Fri, 24 Jul 2020 18:41:30 +0100 From: Matthew Wilcox To: Steven Rostedt Cc: Jonathan Corbet , Peter Zijlstra , linux-doc@vger.kernel.org, LKML Subject: Re: Minor RST rant Message-ID: <20200724174130.GC23808@casper.infradead.org> References: <20200724132200.51fd2065@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724132200.51fd2065@oasis.local.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 01:22:00PM -0400, Steven Rostedt wrote: > I like how RST can help make for a better grouping of our documents > and put it into other formats. But I have to rant a little because I'm > currently experiencing some of the frustration that Peter commonly > complains about. Thanks for bringing this up in such a constructive manner. I'm sympathetic to these concerns. > Then I went to Documentation/filesystems/path-lookup.rst, and found > myself constantly re-reading the same paragraph over again, and losing > track of what I'm reading. I realized it wasn't due to the writing, but > due to the constant inserted markup of quotes, that makes it terribly > annoying to read, and unfortunately, not enjoyable at all. > > For example: > > > It is tempting to describe the second kind as starting with a > > component, but that isn't always accurate: a pathname can lack both > > slashes and components, it can be empty, in other words. This is > > generally forbidden in POSIX, but some of those "xxx``at``" system calls > > in Linux permit it when the ``AT_EMPTY_PATH`` flag is given. For > > example, if you have an open file descriptor on an executable file you > > can execute it by calling `execveat() `_ passing > > the file descriptor, an empty path, and the ``AT_EMPTY_PATH`` flag. > > All those `` are throwing me off to understanding what is being written. > > I don't even know what those are suppose to represent. Great example. Some people definitely go too far with rst markup, and we generally try to discourage it. And I'm pretty sure we take patches to remove excessive markup where it's gone too far [1]. You can see how this renders in html at https://www.kernel.org/doc/html/latest/filesystems/path-lookup.html or run 'make htmldocs' to build it locally. Personally, I don't think the markup style it uses works very well in the html either. I'd like to see this paragraph written as: > It is tempting to describe the second kind as starting with a > component, but that isn't always accurate: a pathname can lack both > slashes and components, it can be empty, in other words. This is > generally forbidden in POSIX, but some of the "*at()" system calls > in Linux permit it when the ``AT_EMPTY_PATH`` flag is given. For > example, if you have an open file descriptor on an executable file you > can execute it by calling execveat() passing the file descriptor, an > empty path, and the ``AT_EMPTY_PATH`` flag. I think we're all pretty comfortable seeing function names adorned with a closing pair of parens. The ``...`` to adorn constants feels OK to me, but maybe not to you? If that feels excessive, can you suggest something that would distinguish between POSIX and AT_EMPTY_PATH? [1] Too far being a subjective measure, of course. My preferences are on display in core-api/xarray.rst