chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57d88b
)
doxygen: support the \warning command.
author
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 13 Dec 2017 20:52:02 +0000
(21:52 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 13 Dec 2017 20:52:02 +0000
(21:52 +0100)
doxygen/dox2html5.py
patch
|
blob
|
history
diff --git
a/doxygen/dox2html5.py
b/doxygen/dox2html5.py
index 558206f5109420aed95969a2bd5644076e71f5a2..088053cae11c27c6351481a70c4995b7096c1234 100755
(executable)
--- a/
doxygen/dox2html5.py
+++ b/
doxygen/dox2html5.py
@@
-441,6
+441,8
@@
def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
out.parsed += '<aside class="m-note m-info"><h4>Note</h4>'
elif i.attrib['kind'] == 'attention':
out.parsed += '<aside class="m-note m-warning"><h4>Attention</h4>'
+ elif i.attrib['kind'] == 'warning':
+ out.parsed += '<aside class="m-note m-danger"><h4>Warning</h4>'
else: # pragma: no cover
out.parsed += '<aside class="m-note">'
logging.warning("ignoring {} kind of <simplesect>".format(i.attrib['kind']))