diff options
| author | Quentin Schulz <quentin.schulz@cherry.de> | 2025-06-18 17:13:36 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 09:48:15 +0100 |
| commit | e60c9d753cd7cda3df1492cee949a88c7713fb9b (patch) | |
| tree | c61f2ec87b82bf686c0f1d2dd5174e230a907474 /documentation/README | |
| parent | bebe66feaee45e1e280a63e089bd894bc9227ee5 (diff) | |
| download | poky-e60c9d753cd7cda3df1492cee949a88c7713fb9b.tar.gz | |
document how to use :doc: directive
Let's specify that we are only expecting "absolute" paths in the docs
directive for local document referencing.
(From yocto-docs rev: 2729250bf1068814e5106d1e71796e8a505963d7)
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/README')
| -rw-r--r-- | documentation/README | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/documentation/README b/documentation/README index 02037e0f7e..56eac7ca19 100644 --- a/documentation/README +++ b/documentation/README | |||
| @@ -314,6 +314,16 @@ See https://stackoverflow.com/questions/27420317/restructured-text-rst-http-link | |||
| 314 | Anchor (<#link>) links are forbidden as they are not checked by Sphinx during | 314 | Anchor (<#link>) links are forbidden as they are not checked by Sphinx during |
| 315 | the build and may be broken without knowing about it. | 315 | the build and may be broken without knowing about it. |
| 316 | 316 | ||
| 317 | It is also possible to refer to another document within yocto-docs with the | ||
| 318 | :doc: directive (c.f. | ||
| 319 | https://www.sphinx-doc.org/en/master/usage/referencing.html#role-doc), e.g.: | ||
| 320 | |||
| 321 | For more information, read :doc:`/bsp-guide/index`. | ||
| 322 | |||
| 323 | Note that only "absolute" paths (starting with a '/') are allowed. The root | ||
| 324 | directory of that path is documentation/, that is, :doc:`/bsp-guide/index` | ||
| 325 | points at documentation/bsp-guide/index.rst. | ||
| 326 | |||
| 317 | References | 327 | References |
| 318 | ========== | 328 | ========== |
| 319 | 329 | ||
