mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +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: 41788e6d230cfb49fadae58ab9651d57cc26f857) 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>
This commit is contained in:
parent
a291343b4b
commit
e4ba8cd69f
|
@ -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