Sphinx中有多个指令可以创建框式文本,例如.. note::
或.. topic::
,但它们都包含标题。是否可以创建没有标题的框式文本?
您可以使用Generic Admonition。
.. admonition:: \ \
You can use a `Generic Admonition`_
.. hint::
| Generic Admonition still requires a title, but an escaped whitespace can be used!
|
| This has the convenience, of the box using a theme style consistent with other admonitions.
.. _Generic Admonition: https://docutils.sourceforge.io/docs/ref/rst/directives.html#generic-admonition