Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2404016ybh; Fri, 24 Jul 2020 11:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxFQoYYiG/wI16DMkdWvfENfdh5/+rcLJA79WM15/wWW+MeNrgVzk4NSiYUEv2UGRDqgFu X-Received: by 2002:a17:906:edbb:: with SMTP id sa27mr11015989ejb.438.1595616750416; Fri, 24 Jul 2020 11:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595616750; cv=none; d=google.com; s=arc-20160816; b=j4RCOf9iXy/b7uwMY7SyeQfYCraTiTrvdSNyvjhzFeHEmg/0R9wFzkckc/k0ID2FIC VTscsbzkX0aUq3yuE0YN1JoQEU1skk+0A+1p9/eFIkAz8Fed2DspZPRSMNm+SUUy/7hh JywbZRew/KR1+LskiBwwJduPg1FpPFTmdTUlqQJkEHE2PqMLn6Z+/vl0Pyj7LN97hPsq 87eRmeRgr7UyyTgMUdZHLkGZ5N3T75JMxNAThuy1Fqp+pr9fki+2A90KxX5kCa2HOIvj 3oKBekVwmKL6+Z85ukwPqdkqcnWIbSfMn1GVdeimwr5iyK308IB/P5DX+IPdlDxAwLhd fc3Q== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=hfByFEE4PFP0llj1IzNKq5o8OGxZkKxTrJGf1f/BqHI=; b=Mu7wcfgR9G/H8mK0x59MQ8/ThHLP/dcyX4R2UYAGIWo2h6ajIgS2XfCeVu4MLechvH eyYj3UpOmAxZyhu0NS/dz0GBXThTZ3LlxfTKJeRnPB1/DnVsGFqYXWucbC+xisVnBCRN 5GMbhwbuec4GaTHj83iS85O40jx74a1GfqEjr4oort7cEV0o7E/mG6hquYcaFBqoKtej 2ex9WOcGnO5PzQ/whdN/32sgR3NDwiFm0VpL8hJBI4NCwY80+t1eWo8OzCRhc8Ho/nQd fX05EaLwvPH4VhMKKCUcsoHWj4r5xaSFvEuPAtUXzG+LhbGGQXk5P2qmSVCqfymrb4W3 BJbw== ARC-Authentication-Results: i=1; mx.google.com; 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 r20si963713edy.598.2020.07.24.11.52.06; Fri, 24 Jul 2020 11:52:30 -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; 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 S1726617AbgGXSvv (ORCPT + 99 others); Fri, 24 Jul 2020 14:51:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:41622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbgGXSvv (ORCPT ); Fri, 24 Jul 2020 14:51:51 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 635BF206D8; Fri, 24 Jul 2020 18:51:50 +0000 (UTC) Date: Fri, 24 Jul 2020 14:51:48 -0400 From: Steven Rostedt To: Matthew Wilcox Cc: Jonathan Corbet , Peter Zijlstra , linux-doc@vger.kernel.org, LKML Subject: Re: Minor RST rant Message-ID: <20200724145148.58836d66@oasis.local.home> In-Reply-To: <20200724174130.GC23808@casper.infradead.org> References: <20200724132200.51fd2065@oasis.local.home> <20200724174130.GC23808@casper.infradead.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Jul 2020 18:41:30 +0100 Matthew Wilcox wrote: > 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 I'd send patches but I suck at markup ;-) [1] > 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? Honestly, it's the context that distinguishes the two for me. I don't need any markup. But yeah, the double backtick still seems awkward. Funny thing is, markup like this: AT_EMPTY_PATH doesn't bother me as much. Not sure why though :-/ My frustration with this stood out quite a bit because I went from one file (with the same name) in .txt format, and went through that fast and quickly where everything made a lot of sense, and then jumping to this file, and feeling like I came to a stand-still in my understanding of the material. > > [1] Too far being a subjective measure, of course. My preferences > are on display in core-api/xarray.rst [1] I maintain trace/ftrace.rst, but the markup in that was written by others, and I gave a lot of pushback when I found that the markup made it hard to read with "less". -- Steve