Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp621632ybd; Sat, 22 Jun 2019 10:46:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwQsqdt72UJXtaJ2xvYP7+rBNKAtAt4H24nyHm7NXLuZ9UK9QDAq84vNvRaOY8FlLHT6KW X-Received: by 2002:a63:1658:: with SMTP id 24mr24239699pgw.167.1561225598221; Sat, 22 Jun 2019 10:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561225598; cv=none; d=google.com; s=arc-20160816; b=RS7E2zbHVH+X3rYoWB7APtJ2zPPTcvbfsCWOhkDxN+VsfLT3NbcyxLVOxbtrRIbNfp LJgEzxGXo42YtlMNR0CyVbYJCykR6bljx5NZ0xulH0IJ/6W6COI0QmwydCP+dPLaU16V z4dL7KBAiQKRITcWoxQsbrYMEuXoZotQ5FLdGyhlukXZ+w9+6hUDJIlEEfiE5MQadBZD 1n/9tuGWOpLuVtyoRFR0s+RD8jQ9cI23zgUz9BI/Y1eykp4HwRtGYrDLkcfleuocdYbc sFFiEoPya5YYQPnPPj1K2678DFWrsG5TcW2mM9iMuw3SnaeFTcUtaWpVV/yrdCQIcVvb TV9Q== 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=60xhp6+spwceUSgQlTZCaiG+QVWO6xAU7FfyK/vAN3I=; b=NC2Jisq1mEt3dPtIdc2g4DVG1fA0cTv2EKT/4900vRUNv3OeCjCYYEf6VcZpW3pEye gx0a8ZmEUvMef6MYnyoQAqFAyU8tEQIGABL9op/cN9a6ZEb/cCOnd9llP0evHhXfsClX oDWY+vCEqf1VB4x6fIGN+nhs4RmghJYLEhD0nJgx/7zI7dlkamTo468UJdqf/SRCXgj2 hf/lrhJByYLofrX4kDk2uD5Ls4G7RowuGKfPpJRhdph2tdh2mUJ0UWCZbprpje+PH9fa eeIYlLpfgWPvCXvlC1e2XqCvOfhs7pyKAfH3g/DYmri8nz7jtuXhP35oCqkoT50AFcl0 oL5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oZjCdq+a; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf7si5356608plb.216.2019.06.22.10.46.18; Sat, 22 Jun 2019 10:46:38 -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=oZjCdq+a; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbfFVRqO (ORCPT + 99 others); Sat, 22 Jun 2019 13:46:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46494 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfFVRqO (ORCPT ); Sat, 22 Jun 2019 13:46:14 -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=60xhp6+spwceUSgQlTZCaiG+QVWO6xAU7FfyK/vAN3I=; b=oZjCdq+aOYjrAf52L1dFiPYI3 2gk3jiuUylbGyGZVzOMi0QOW3M3gLO/yX4lFyAvdtD+X65QZqEcBw0PesQ3HYXQrousfJ1GxR/TsW tGCawfIFudlTfNa9MTafpRdpB/NqCEM1auqW1KD8237APvpTwG3xXFizOpGtQZqVgIXfdpvqWgvSG /A0Nh1OUMjZiXqOO4cepbYSgS0nDo2TS8haLDFh/bCw59RFA0XAQOW/Jbnb/OdW9Ewgpa1sScXjxQ 5yYuGuvy+fze++xJzCZkXxUvxU4pfPMRDiurPQc+fHj4IrFioHHT8zq0RbQBu4bBviaRzN+95tvSM L3BRhR29w==; Received: from [179.95.45.115] (helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hek5d-000394-Jd; Sat, 22 Jun 2019 17:46:13 +0000 Date: Sat, 22 Jun 2019 14:46:10 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, Matthew Wilcox , Jani Nikula , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] Docs: An initial automarkup extension for sphinx Message-ID: <20190622144610.26b7d99c@coco.lan> In-Reply-To: <20190622084346.28c7c748@lwn.net> References: <20190621235159.6992-1-corbet@lwn.net> <20190621235159.6992-2-corbet@lwn.net> <20190621220046.3de30d9d@coco.lan> <20190622084346.28c7c748@lwn.net> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, 22 Jun 2019 08:43:46 -0600 Jonathan Corbet escreveu: > On Fri, 21 Jun 2019 22:00:46 -0300 > Mauro Carvalho Chehab wrote: > > > > +# > > > +# The DVB docs create references for these basic system calls, leading > > > +# to lots of confusing links. So just don't link them. > > > +# > > > +Skipfuncs = [ 'open', 'close', 'write' ] > > > > and yeah, of course, if there's something weird, it has to be at > > the media docs :-) > > > > Btw, if I'm not mistaken, we do the same for ioctl. > > So that's actually interesting. In, for example, > Documentation/media/uapi/v4l/func-ioctl.rst, you see something that looks > like this: > > > .. c:function:: int ioctl( int fd, int request, void *argp ) > > :name: v4l2-ioctl > > Some digging around didn't turn up any documentation for :name:, but it > seems to prevent ioctl() from going into the list of functions that can be > cross-referenced. It took me a while to discover this way to be able to re-define the name of a symbol at the C domain, but I'm pretty sure I read this somewhere at the Sphinx docs (or perhaps on some bug track or Stack Overflow). I don't remember exactly where I get it, but I guess it is related to this: http://docutils.sourceforge.net/docs/howto/rst-roles.html > I wonder if the same should be done for the others? Sure. > I think that would be better than putting a special-case hack into the > toolchain. Agreed. As you're doing this, if you prefer, feel free to send the patches to media docs. Otherwise, I'll seek for some time next week. > > > I'm wandering if this could also handle the Documentation/* auto-replace. > > I think it's the obvious place for it, yes. Let's make sure I haven't > badly broken anything with the existing change first, though :) Yeah, sure. Just wanted to place the code at the same thread. There are some tricks that need to be done in order to handle the relative paths. It took me a lot more time to get it right than adding the replacing Regex :-) (That reminds I should post a patch to one place where we have a Documentation/Documentation typo) Thanks, Mauro