From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D044DC47097 for ; Thu, 3 Jun 2021 11:35:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B299F613EE for ; Thu, 3 Jun 2021 11:35:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbhFCLhG (ORCPT ); Thu, 3 Jun 2021 07:37:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:37784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhFCLhF (ORCPT ); Thu, 3 Jun 2021 07:37:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 26B5C613E9; Thu, 3 Jun 2021 11:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622720120; bh=Y8bFIkLifsKJfKnmVZNGcWbsdgZzBCGpasopTV0wxY0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MAyr80K+yANWljCa8bkRcqqEyEi2ii+Vf+HrV+uw6luMwGp55ZOckMfMpjAgU61cQ LNYOjG9yxGYpWmO7G4+Zk3qH1ZsdewyaeveRSh/++Vht9drfCB4FJKOCyRlOP/C+IN kxtXddcwt2aYOYfHm/DcpRPtnRTEUo420tn3Xi/IJz3Cx7ihc4npLunVJfznOS/GIR DsRL8I41euKtXdprF4f6ahxz4IA036sMcMXEek7JhpGEu/gbgNfVP4CGxaY0bRZQTD 4ewzfbYytVtgrnoJkjAa6bYwpcFn6YhU8OtA5qh+7gyPUH9ATnmuo7TigfSlksSaJO MRFVbZvXjmuTg== Date: Thu, 3 Jun 2021 13:35:14 +0200 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Peter Zijlstra , Linux Doc Mailing List , "Guilherme G. Piccoli" , Andrew Morton , Daniel Borkmann , Kees Cook , Lepton Wu , Mel Gorman , Qais Yousef , Randy Dunlap , Rasmus Villemoes , Stephen Kitt , Wang Qing , linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/12] docs: accounting: update delay-accounting.rst reference Message-ID: <20210603133514.3688071f@coco.lan> In-Reply-To: <871r9k6rmy.fsf@meer.lwn.net> References: <629b0bd21d02c8faef9a6d17d9eee8ff612715e0.1622648507.git.mchehab+huawei@kernel.org> <20210602200121.64a828a1@coco.lan> <871r9k6rmy.fsf@meer.lwn.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 02 Jun 2021 12:36:05 -0600 Jonathan Corbet escreveu: > Mauro Carvalho Chehab writes: > > > That's said, automarkup.py has a rule to convert Documentation/.rst > > into :doc:``. So, an alternative approach would be to convert > > treewide all :doc:`` into Documentation/.rst and add something > > at checkpatch.pl to recommend to avoid :doc: notation. > > That seems like the right approach to me. We have the automarkup > capability, we might as well make use of it... Hmm... This patch caused a regression: PATCH] media: admin-guide: avoid using ReSt :doc:`foo` markup The :doc:`foo` tag is auto-generated via automarkup.py. So, use the filename at the sources, instead of :doc:`foo`. Signed-off-by: Mauro Carvalho Chehab diff --git a/Documentation/admin-guide/media/index.rst b/Documentation/admin-guide/media/index.rst index 6e0d2bae7154..5dbf6d02096a 100644 --- a/Documentation/admin-guide/media/index.rst +++ b/Documentation/admin-guide/media/index.rst @@ -11,10 +11,10 @@ its supported drivers. Please see: -- :doc:`/userspace-api/media/index` +- Documentation/userspace-api/media/index.rst for the userspace APIs used on media devices. -- :doc:`/driver-api/media/index` +- Documentation/driver-api/media/index.rst for driver development information and Kernel APIs used by media devices; This is the diff for the HTML output: diff --git a/admin-guide/media/index.html b/admin-guide/media/index.html index 94c0cdf51579..28c083b75896 100644 --- a/admin-guide/media/index.html +++ b/admin-guide/media/index.html @@ -339,12 +339,12 @@ its supported drivers.

Please see:

  • -
    Linux Media Infrastructure userspace API

    for the userspace APIs used on media devices.

    +
    Documentation/userspace-api/media/index.rst

    for the userspace APIs used on media devices.

  • -
    Media subsystem kernel internal API

    for driver development information and Kernel APIs used by +

    Documentation/driver-api/media/index.rst

    for driver development information and Kernel APIs used by media devices;

    It sounds that automarkup.py ignored it. Maybe because it is inside a list? Thanks, Mauro