diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-10-27 11:46:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-28 15:48:03 +0100 |
commit | bb3fc03ef167a005cdf1192df60ac2fb1cbc5ae3 (patch) | |
tree | bd267dad4ad629ad1afab9ca3dd36469a7c6ff05 | |
parent | e12050dcadde33073dc0af4f0d8432cc80f36e38 (diff) | |
download | poky-bb3fc03ef167a005cdf1192df60ac2fb1cbc5ae3.tar.gz |
Documentation/README: formalize guidelines for external link syntax
(From yocto-docs rev: f5d10ceed943270d7bcfa31b5936f37a60669c7f)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/README | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/documentation/README b/documentation/README index 6333f0496a..c27ed86a33 100644 --- a/documentation/README +++ b/documentation/README | |||
@@ -275,6 +275,19 @@ websites. | |||
275 | More information can be found here: | 275 | More information can be found here: |
276 | https://sublime-and-sphinx-guide.readthedocs.io/en/latest/references.html. | 276 | https://sublime-and-sphinx-guide.readthedocs.io/en/latest/references.html. |
277 | 277 | ||
278 | For external links, we use this syntax: | ||
279 | `link text <link URL>`__ | ||
280 | |||
281 | instead of: | ||
282 | `link text <link URL>`_ | ||
283 | |||
284 | Both syntaxes work, but the latter also creates a "link text" reference | ||
285 | target which could conflict with other references with the same name. | ||
286 | So, only use this variant when you wish to make multiple references | ||
287 | to this link, reusing only the target name. | ||
288 | |||
289 | See https://stackoverflow.com/questions/27420317/restructured-text-rst-http-links-underscore-vs-use | ||
290 | |||
278 | Anchor (<#link>) links are forbidden as they are not checked by Sphinx during | 291 | Anchor (<#link>) links are forbidden as they are not checked by Sphinx during |
279 | the build and may be broken without knowing about it. | 292 | the build and may be broken without knowing about it. |
280 | 293 | ||