Add Signals descriptions when they exist.

This commit is contained in:
Julian Murgia 2017-06-14 15:48:50 +02:00
parent ffe61e63d1
commit 9c7b4c82a7
2 changed files with 12 additions and 0 deletions

View file

@ -273,6 +273,12 @@ def make_doku_class(node):
f.write('\n### Signals \n')
for m in list(events):
make_method(f, node.attrib['name'], m, True, True)
d = m.find('description')
if d == None or d.text.strip() == '':
continue
f.write('\n')
f.write(dokuize_text(d.text.strip()))
f.write('\n')
members = node.find('members')

View file

@ -441,6 +441,12 @@ def make_rst_class(node):
f.write(make_heading('Signals', '-'))
for m in list(events):
make_method(f, node.attrib['name'], m, True, name, True)
d = m.find('description')
if d == None or d.text.strip() == '':
continue
f.write(rstize_text(d.text.strip(), name))
f.write("\n\n")
f.write('\n')
members = node.find('members')