Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create boxed text without title in Sphinx?

There are several directives in Sphinx to create a boxed text, ex .. note:: or .. topic::, but they all include a title. Is it possible to create a boxed text without title?

like image 830
kludg Avatar asked Jan 23 '26 01:01

kludg


1 Answers

You can use Generic Admonition.

enter image description here

.. 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
like image 161
bad_coder Avatar answered Jan 26 '26 01:01

bad_coder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!