mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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: 0c1252b67e602ebf7197e1388dd1fb86b37d25c8) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a5c9bff2b7
commit
129756e664
|
@ -109,6 +109,21 @@ or in the BitBake User Manual
|
|||
If it is not described yet, the variable should be added to the
|
||||
glossary before or in the same patch it is used, so that `:term:` can be used.
|
||||
|
||||
### Admonitions
|
||||
|
||||
Sphinx has predefined admonitions that can be used to highlight a bit of text or
|
||||
add a side-note to the documentation. For example:
|
||||
|
||||
```rst
|
||||
.. note::
|
||||
|
||||
This is a note admonition.
|
||||
```
|
||||
|
||||
We try to limit our usage of these admonitions to `note` and `warning`, as the
|
||||
Sphinx documentation [warns](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives)
|
||||
that most themes only style these two admonitions.
|
||||
|
||||
## ReStructured Text Syntax standards
|
||||
|
||||
This section has not been filled yet
|
||||
|
|
Loading…
Reference in New Issue
Block a user