summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2024-11-18 15:24:01 +0100
committerSteve Sakoman <steve@sakoman.com>2024-12-06 05:50:25 -0800
commita8580b726a3d542be5159e5544d50ab69dda7eed (patch)
tree1f23fc4ef61e9c8efc29e0d242f47283710e2767 /documentation
parentaad028a455b7ba9241eacec313777be669599654 (diff)
downloadpoky-a8580b726a3d542be5159e5544d50ab69dda7eed.tar.gz
standards.md: add a section on admonitions
We try to limit our usage of these admonitions to `note` and `warning`, as the Sphinx documentation warns that most themes only style these two admonitions. So add a section on that. Suggested-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> (From yocto-docs rev: 2c28575c9aa0ca77d9c21f0833bacb19d44a7931) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit f86ffa1b1dcf0665c17424eee87b6bead09960f6) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/standards.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/documentation/standards.md b/documentation/standards.md
index bc403e393e..f3d88d446b 100644
--- a/documentation/standards.md
+++ b/documentation/standards.md
@@ -109,6 +109,21 @@ or in the BitBake User Manual
109If it is not described yet, the variable should be added to the 109If it is not described yet, the variable should be added to the
110glossary before or in the same patch it is used, so that `:term:` can be used. 110glossary before or in the same patch it is used, so that `:term:` can be used.
111 111
112### Admonitions
113
114Sphinx has predefined admonitions that can be used to highlight a bit of text or
115add a side-note to the documentation. For example:
116
117```rst
118.. note::
119
120 This is a note admonition.
121```
122
123We try to limit our usage of these admonitions to `note` and `warning`, as the
124Sphinx documentation [warns](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives)
125that most themes only style these two admonitions.
126
112## ReStructured Text Syntax standards 127## ReStructured Text Syntax standards
113 128
114This section has not been filled yet 129This section has not been filled yet