Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3969050yba; Tue, 23 Apr 2019 12:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx96Jf4m0LRHH5ZO8L47L9Q1Q6CB81Uk64IuVUPNikKa1tVQInvw68xLnnrXIqtCZgkOHbB X-Received: by 2002:a17:902:9898:: with SMTP id s24mr6944121plp.268.1556048420162; Tue, 23 Apr 2019 12:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556048420; cv=none; d=google.com; s=arc-20160816; b=QOZAut0n0wwCqZ3noKzu6ww89Z1D3tnAiccWbvffZtEkfm4y6g8ERUr6syLjlyIjOl sVb/+72LIQdBaHCQpWgspHnmRx/smwitVL3NNmpZVCnBV7ZgvfzOS7ySuJUkQpna9QQ/ g5nhz61FHMUCBpzrnAh7eB/CIcVkBQ1W7yppGIF27oCDjmF21dh4Z3O7eU4/EJjn2cOd j7WRWnvDylezhVVetSYHEhC26u0NpCo/eoQE2zCEZy58r8CRBdr6hJoNNsOemQsZ5OjV yWi9Sm3Wi9qg7GzbC/YjSGWP2nkmwXh1nH/qm1UxsFNviH6V3isHYQJ6ZI/CqgruFrOj 8e5Q== 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 :dkim-signature; bh=v90smGlR8YcBtf35qFxkKO1Jv3MDZCbrErhvMGJqpKU=; b=0Y6oOOCr7+++GSwE+sAe/qF+Ik/M8PfY8ydG50o8f+wDzxH53p7VS0Tqs+ewb2a23q yNskAXhTZNlLItBzD71H9gxq1/m3hACsgCYsWBqvtyFCNRTeNl5JjG+eOxBbs1/qNeDL c00U4RjTSDOok9enyWoWn1nUeAv2OhmeGZBIEvfckYD/2UTTNecSoW0FtK+/ZYNmbiCB r9Hhrx7aVLYtJWe0cwS6SilNBEqYK+n2+xoDq9o6BPpIV8XcVnksF2F/RXoLfaMVg8N3 sgsA35wqjZ8sHugeYQFqRK5+34djbVnAUt1gs9i3Xtc1dvbIL7fxvQsYjd2Ll+a4DAiX P9GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eNHwFwrH; 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 b15si5914385pgl.2.2019.04.23.12.40.05; Tue, 23 Apr 2019 12:40:20 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eNHwFwrH; 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 S1726935AbfDWThs (ORCPT + 99 others); Tue, 23 Apr 2019 15:37:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38686 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfDWThr (ORCPT ); Tue, 23 Apr 2019 15:37:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=v90smGlR8YcBtf35qFxkKO1Jv3MDZCbrErhvMGJqpKU=; b=eNHwFwrHFtvIQDQop6c+p6GEk hs0p+v4WYM0v160PuFTRFqssnvUMvznFykaKmusuYPlX9VPMpdd9CSg2BFENMdRpsvWjv8lk9fGXH I30l+4DvPXoHqmdzXYJ6E5AdqIH+d1N7dOJQgnrgAowZ5C8Mn6FOz40yIk0Nlee5UEexXD7+wprae LUOOsPRnK9Qm5aG2YXLNf1vDZwsS4D4mznengK7AMW6+M9FINhU/YsVKwXxybZLnxPPeNkikpvI/0 k0DJ1Is0rdkIIJhYwHmwj8DTjucOAh42GfVUMezohZtHXDYoM4klx2OvApB4uwNtpZdztMKsGrM3/ HF1HOITWQ==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJ1Ef-0003hu-D2; Tue, 23 Apr 2019 19:37:45 +0000 Date: Tue, 23 Apr 2019 16:37:40 -0300 From: Mauro Carvalho Chehab To: David Howells Cc: Mike Snitzer , Peter Zijlstra , Jonathan Corbet , Linux Doc Mailing List , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v2 56/79] docs: Documentation/*.txt: rename all ReST files to *.rst Message-ID: <20190423163740.76b0a9f1@coco.lan> In-Reply-To: <20704.1556031146@warthog.procyon.org.uk> References: <20190423132100.GB7132@redhat.com> <20190423083135.GA11158@hirez.programming.kicks-ass.net> <20190423125519.GA7104@redhat.com> <20190423130132.GT4038@hirez.programming.kicks-ass.net> <20704.1556031146@warthog.procyon.org.uk> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 23 Apr 2019 15:52:26 +0100 David Howells escreveu: > Mike Snitzer wrote: > > > Peter Zijlstra wrote: > > > > > But yes, I have 0 motivation to learn or abide by rst. It simply doesn't > > > give me anything in return. There is no upside, only worse text files :/ > > > > Right, but these changes aren't meant for our benefit. They are for > > users who get cleaner web accessible Linux kernel docs. Seems the > > decision has been made that the users' benefit, and broader > > modernization of Linux docs, outweighs the inconvenience for engineers > > who maintain the content of said documentation. > > Whilst I can sympathise with Mauro and Jon - and appreciate the hard work > they've put into this, I do think that the engineers dealing directly with the > kernel code should be considered the primary audience. > > There've been some changes that I've particularly objected to, such as > removing contents lists from files and replacing them with markup like: > > .. contents:: :local: Actually, just: .. contents Is enough. The goal here is just to avoid having two indexes when generating an html output - and sometimes the internal contents index is broken - I got one of these during this patch series: a very confusing internal "contents" that doesn't really match the contents of the file - probably because some patch changed the contents but didn't update the internal index. > > This actually impedes use of the file. It should not be necessary to build > the docs to get that for ordinary use. IMHO, replacing: Contents 1. Introduction ... By: .. Contents 1. Introduction ... won't make the document harder to read as plain text file. With html output, the contents will be at both the index.html and at the lateral bar, so the text "Contents" can be hidden (and that's what the two points make: it transforms the block into a comment). > > > Anyway, the biggest doc issue in the kernel isn't addressed by the conversion > to ReST: and that is that most people don't seem interested in documenting > stuff - whether because writing documentation isn't as fun as writing code or > the fact that English isn't their native language, I don't know. I can > sympathise more with the latter. Yeah, foreign people gets afraid on writing English documents. Yet, my personal perception is that we end by getting more contributions once the documents get converted, as more people end reading them and ends by sending us more contributions. > Kerneldoc is a start - and probably means that a lot of API functions are at > least slightly documented - but too many APIs are not mentioned in the > Documentation directory at all. Remember: if you can't describe it, it's > probably wrong! Fully agreed. > I'm not sure what we could do about this, but it would probably have to be > imposed from the top: no more undocumented APIs. Any new API must come with > documentation; changes to APIs must include changes to the documentation. This is a requirement on media: we don't accept for quite a while uAPI changes without documentation, and we're doing the same for new kAPI changes (although it is a little more complex to track kAPI changes). > If you really want to upset people, you could add: anyone who wants to alter > an already existing undocumented API must supply documentation for the whole > API (but that could be considered a bit cruel). Well, we may politely request that ;-) If it doesn't work, we can accept documentation for just the new stuff. > > And anyone who says "But the code is the documentation!" needs to consider > carefully what happens to their code after it has been trampled, generalised, > split, combined, renormalised, cthulhuised, janitorised and had parts of it > migrate. Yes, on a complex system like the Kernel, having just access to the code is not enough, as developers don't usually have the time to read the code for every single function call his code needs to use. > > > > And now, after that, I think a fresh cup of tea is called for! > > David Thanks, Mauro