Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp414133pxk; Fri, 11 Sep 2020 10:13:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx47z7S1sv3dDIgL6B3TQe7RMomoSmdYcv3J10mxw7rqUwuFu2DBzyfyR5MCb+eoFYAIewv X-Received: by 2002:a17:906:54e:: with SMTP id k14mr2978862eja.59.1599844386204; Fri, 11 Sep 2020 10:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599844386; cv=none; d=google.com; s=arc-20160816; b=NuuuKTPHfVgftlmSvTIFfDmzOJa4mQcmSQqeYtjsM7c3/yS9oVcKoRKm9Ybp7z3eN4 41nIcSzu8bFJJRUNV5RCvS9zLkOiWGrsbplzyoB/Lzyxjd0rgjEIaaltppv7FEePPhPU WZlROqMf5m0dpoIUEiy8fO7xQim2Hko1UZ+GIqs34lm1JJ7IBBrJLvDv1TJNsLCUFJQL 62SAv3WwWRlO+Y0pZMBGjhmRgduoGvaQm3WHykhOCgRECYLGCrloei5jPgZjtZeSEuaD tgU9qbw9Xpix/BC2OHtZ+SARDR+y7KgBrayWr27YGnIjqpEP1aGbcZct31OBuy8hS7K+ RlMg== 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:reply-to:cc:from:to :dkim-signature:date; bh=Erd4pfmpeqmMIgYEE3LftzT/NokPV6QOR5uNAgHN+WY=; b=Vp6/YGES8SdPuq067AW4ScDKbBe5BxkoQB/egWEN/9R5Yfb3CdWxq1KU8/irsHnXRU kT4GH0045eR1sgnowHZ46ARSjGr1eLNiRbc65GUX8tCnKwrOT2ExbIj9sRMRSg0ZusQO 9RuP78S+pcP3A9gwoNUncU2U/i6PcX0ufIqEZC69E0jKsBY/ILcU5x8Z7fq3MPZ2zKyY ta2AgLOQXFi4nwGk8WtEWdGMJMo+Rvh2Z3QX3K6PIDWxREnqbTryRlREjdDWt6e8fiNt hkVIetJlw95mDDQxEqLbSpnTr7VIgo7ZG3jnhFnCHG6942n87IW66RZTar4eHLYHxJsh KJmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=D4PMDWzm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si1699028edv.513.2020.09.11.10.12.43; Fri, 11 Sep 2020 10:13:06 -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=pass header.i=@protonmail.com header.s=protonmail header.b=D4PMDWzm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbgIKRJo (ORCPT + 99 others); Fri, 11 Sep 2020 13:09:44 -0400 Received: from mail-41104.protonmail.ch ([185.70.41.104]:17966 "EHLO mail-41104.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbgIKO7d (ORCPT ); Fri, 11 Sep 2020 10:59:33 -0400 Received: from mail-03.mail-europe.com (mail-03.mail-europe.com [91.134.188.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41104.protonmail.ch (Postfix) with ESMTPS id 909EC20164AB for ; Fri, 11 Sep 2020 13:36:55 +0000 (UTC) Authentication-Results: mail-41104.protonmail.ch; dkim=pass (1024-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="D4PMDWzm" Date: Fri, 11 Sep 2020 13:34:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1599831292; bh=Erd4pfmpeqmMIgYEE3LftzT/NokPV6QOR5uNAgHN+WY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=D4PMDWzmSF156oKIEQobNbHeX2XG37f7Bci1Jqhsf1jAQtzj7MMl8PcihcJ6bYpLK HfbP6nXmqK1Xb7dcrhkr3nPeunNoiuA8hVoqIroYca4Ysbq8Li+2DbLnQCKuUPZnCi rO/S8to1OC53yyU/jsEmggVsVOUjrS0y4lPvNz+c= To: Jonathan Corbet From: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Reply-To: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Subject: [PATCH 3/3] docs: Document cross-referencing between documentation pages Message-ID: <20200911133339.327721-4-nfraprado@protonmail.com> In-Reply-To: <20200911133339.327721-1-nfraprado@protonmail.com> References: <20200911133339.327721-1-nfraprado@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The syntax to cross-reference between documentation pages wasn't documented anywhere. Document the cross-referencing using the new automarkup for Documentation/... and also Sphinx's doc directive for using relative paths. Signed-off-by: N=C3=ADcolas F. R. A. Prado --- Documentation/doc-guide/sphinx.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/doc-guide/sphinx.rst b/Documentation/doc-guide/s= phinx.rst index f71ddd592aaa..896478baf570 100644 --- a/Documentation/doc-guide/sphinx.rst +++ b/Documentation/doc-guide/sphinx.rst @@ -337,6 +337,23 @@ Rendered as: =20 - column 3 =20 +Cross-referencing +----------------- + +Cross-referencing from one documentation page to another can be done by pa= ssing +the path to the file starting from the Documentation folder. +For example, to cross-reference to this page (the .rst extension is option= al):: + + See Documentation/doc-guide/sphinx.rst. + +If you want to use a relative path, you need to use Sphinx's ``doc`` direc= tive. +For example, referencing this page from the same directory would be done a= s:: + + See :doc:`sphinx`. + +For information on cross-referencing to kernel-doc functions or types, see +Documentation/doc-guide/kernel-doc.rst. + .. _sphinx_kfigure: =20 Figures & Images --=20 2.28.0