DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] devtools: forbid reference to doc.dpdk.org/guides
@ 2023-06-21  8:09 David Marchand
  2023-06-21 10:51 ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2023-06-21  8:09 UTC (permalink / raw)
  To: dev; +Cc: thomas

Putting links to doc.dpdk.org/guides in our documentation should be
avoided because it makes the documentation point at the current state of
the DPDK tree regardless of the version it is generated against.

Note: it should be acceptable to mention previous versions of DPDK (like
in old release notes), so the pattern has an explicit trailing /.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 devtools/checkpatches.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 15d5d67094..39235da985 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -175,6 +175,14 @@ check_forbidden_additions() { # <patch>
 		-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
 		"$1" || res=1
 
+	# don't use external URL in documentation, prefer internal references
+	awk -v FOLDERS='doc' \
+		-v EXPRESSIONS='//doc.dpdk.org/guides/' \
+		-v RET_ON_FAIL=1 \
+		-v MESSAGE='Using explicit URL to doc.dpdk.org, prefer :ref: or :doc:' \
+		-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
+		"$1" || res=1
+
 	# '// XXX is not set' must be preferred over '#undef XXX'
 	awk -v FOLDERS='config/rte_config.h' \
 		-v EXPRESSIONS='#undef' \
-- 
2.40.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] devtools: forbid reference to doc.dpdk.org/guides
  2023-06-21  8:09 [PATCH] devtools: forbid reference to doc.dpdk.org/guides David Marchand
@ 2023-06-21 10:51 ` Bruce Richardson
  2023-07-20  4:20   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2023-06-21 10:51 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, thomas

On Wed, Jun 21, 2023 at 10:09:20AM +0200, David Marchand wrote:
> Putting links to doc.dpdk.org/guides in our documentation should be
> avoided because it makes the documentation point at the current state of
> the DPDK tree regardless of the version it is generated against.
> 
> Note: it should be acceptable to mention previous versions of DPDK (like
> in old release notes), so the pattern has an explicit trailing /.
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  devtools/checkpatches.sh | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] devtools: forbid reference to doc.dpdk.org/guides
  2023-06-21 10:51 ` Bruce Richardson
@ 2023-07-20  4:20   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2023-07-20  4:20 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, Bruce Richardson

21/06/2023 12:51, Bruce Richardson:
> On Wed, Jun 21, 2023 at 10:09:20AM +0200, David Marchand wrote:
> > Putting links to doc.dpdk.org/guides in our documentation should be
> > avoided because it makes the documentation point at the current state of
> > the DPDK tree regardless of the version it is generated against.
> > 
> > Note: it should be acceptable to mention previous versions of DPDK (like
> > in old release notes), so the pattern has an explicit trailing /.
> > 
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-20  4:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21  8:09 [PATCH] devtools: forbid reference to doc.dpdk.org/guides David Marchand
2023-06-21 10:51 ` Bruce Richardson
2023-07-20  4:20   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).