I am using Sphinx to generate HTML documentation for a Python program.
I would like to use the generic admonition
directive (cf. http://docutils.sourceforge.net/docs/ref/rst/directives.html#generic-admonition) with a specific title and have it marked up in a way I can define, for example like content generated with the note
directive, i.e., boxed, but with a different color (most admonitions are not specially styled, cf. http://sphinx.pocoo.org/rest.html?highlight=admonition).
How do I best go about this?
admonition
directive to be rendered exactly like thenote
directive? Why? What do you mean by "specific sphinx admonitions"? – mzjnadmonition
; Bud's answer is perfectly fine. – equaeghe