public inbox for docs@lists.yoctoproject.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Documentation/README: formalize guidelines for external link syntax
@ 2022-10-27 11:39 michael.opdenacker
  2022-10-27 11:39 ` [PATCH 2/3] manuals: replace "_" by "__" in external links michael.opdenacker
  2022-10-27 11:39 ` [PATCH 3/3] manuals: stop referring to the meta-openembedded repo from GitHub michael.opdenacker
  0 siblings, 2 replies; 3+ messages in thread
From: michael.opdenacker @ 2022-10-27 11:39 UTC (permalink / raw)
  To: docs; +Cc: Michael Opdenacker

From: Michael Opdenacker <michael.opdenacker@bootlin.com>

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
---
 documentation/README | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/documentation/README b/documentation/README
index 6333f0496a..c27ed86a33 100644
--- a/documentation/README
+++ b/documentation/README
@@ -275,6 +275,19 @@ websites.
 More information can be found here:
 https://sublime-and-sphinx-guide.readthedocs.io/en/latest/references.html.
 
+For external links, we use this syntax:
+`link text <link URL>`__
+
+instead of:
+`link text <link URL>`_
+
+Both syntaxes work, but the latter also creates a "link text" reference
+target which could conflict with other references with the same name.
+So, only use this variant when you wish to make multiple references
+to this link, reusing only the target name.
+
+See https://stackoverflow.com/questions/27420317/restructured-text-rst-http-links-underscore-vs-use
+
 Anchor (<#link>) links are forbidden as they are not checked by Sphinx during
 the build and may be broken without knowing about it.
 
-- 
2.34.1



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

end of thread, other threads:[~2022-10-27 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 11:39 [PATCH 1/3] Documentation/README: formalize guidelines for external link syntax michael.opdenacker
2022-10-27 11:39 ` [PATCH 2/3] manuals: replace "_" by "__" in external links michael.opdenacker
2022-10-27 11:39 ` [PATCH 3/3] manuals: stop referring to the meta-openembedded repo from GitHub michael.opdenacker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox