mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Format .. warning::s with a "Caveat" label.
This commit is contained in:
@@ -39,6 +39,7 @@ class HTMLTranslator(BaseTranslator):
|
||||
self.no_smarty = 0
|
||||
BaseTranslator.__init__(self, *args, **kwds)
|
||||
self.highlightlang = 'python'
|
||||
self.language.labels['warning'] = 'Caveat'
|
||||
|
||||
def visit_desc(self, node):
|
||||
self.body.append(self.starttag(node, 'dl', CLASS=node['desctype']))
|
||||
|
||||
Reference in New Issue
Block a user