Admonitions¶
Sphinx provides several different types of admonitions.
topic
¶
.. topic:: This is a topic.
This is what admonitions are a special case of, according to the docutils
documentation.
admonition
¶
.. admonition:: The one with the custom titles
It's got a certain charm to it.
The one with the custom titles
It’s got a certain charm to it.
attention
¶
.. attention::
Climate change is real.
Attention
Climate change is real.
caution
¶
.. caution::
Cliff ahead: Don't drive off it.
Prudence
Cliff ahead: Don’t drive off it.
danger
¶
.. danger::
Mad scientist at work!
Danger
Mad scientist at work!
error
¶
.. error::
Does not compute.
Erreur
Does not compute.
hint
¶
.. hint::
Insulators insulate, until they are subject to ______ voltage.
Indication
Insulators insulate, until they are subject to ______ voltage.
important
¶
.. important::
Tech is not neutral, nor is it apolitical.
Important
Tech is not neutral, nor is it apolitical.
note
¶
.. note::
This is a note.
Note
This is a note.
seealso
¶
.. seealso::
Other relevant information.
Voir aussi
Other relevant information.
tip
¶
.. tip::
25% if the service is good.
Astuce
25% if the service is good.
todo
¶
.. todo::
This needs the ``sphinx.ext.todo`` extension.
À faire
This needs the sphinx.ext.todo
extension.
warning
¶
.. warning::
Reader discretion is strongly advised.
Avertissement
Reader discretion is strongly advised.
versionadded
¶
.. versionadded:: v0.1.1
Here's a version added message.
Nouveau dans la version v0.1.1: Here’s a version added message.
versionchanged
¶
.. versionchanged:: v0.1.1
Here's a version changed message.
Modifié dans la version v0.1.1: Here’s a version changed message.
deprecated
¶
.. deprecated:: v0.1.1
Here's a deprecation message.
Obsolète depuis la version v0.1.1: Here’s a deprecation message.