Python sphinx 如何在Sphinx中创建没有标题的方框文本?
Sphinx中有几个用于创建装箱文本的指令,例如Python sphinx 如何在Sphinx中创建没有标题的方框文本?,python-sphinx,restructuredtext,Python Sphinx,Restructuredtext,Sphinx中有几个用于创建装箱文本的指令,例如。。注意::或。。主题::,但它们都包含一个标题。是否可以创建没有标题的装箱文本?您可以使用 有几种方法包括定制CSSp.admonit-title{display:none;}或原始HTML指令。谢谢,但这仍然不是我想要的。我已经拒绝使用rst来编写文档,而支持markdown+原始html。 .. admonition:: \ \ You can use a `Generic Admonition`_ .. hint:: |
。。注意::
或。。主题::
,但它们都包含一个标题。是否可以创建没有标题的装箱文本?您可以使用
有几种方法包括定制CSS
p.admonit-title{display:none;}
或原始HTML指令。谢谢,但这仍然不是我想要的。我已经拒绝使用rst来编写文档,而支持markdown+原始html。
.. admonition:: \ \
You can use a `Generic Admonition`_
.. hint::
| Generic Admonition still requires a title, but an escaped whitespace can be used!
|
| This can be convenient, because the box uses a style consistent with other admonitions.
|
| And might spare you from having to fiddle with CSS while Rome burns :)
.. _Generic Admonition: https://docutils.sourceforge.io/docs/ref/rst/directives.html#generic-admonition