Merge pull request #9172 from StraToN/signals-description
[2.1] Add Signals descriptions when they exist. [ci skip]
This commit is contained in:
commit
a514518aa8
2 changed files with 12 additions and 0 deletions
|
@ -273,6 +273,12 @@ def make_doku_class(node):
|
||||||
f.write('\n### Signals \n')
|
f.write('\n### Signals \n')
|
||||||
for m in list(events):
|
for m in list(events):
|
||||||
make_method(f, node.attrib['name'], m, True, True)
|
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')
|
members = node.find('members')
|
||||||
|
|
||||||
|
|
|
@ -441,6 +441,12 @@ def make_rst_class(node):
|
||||||
f.write(make_heading('Signals', '-'))
|
f.write(make_heading('Signals', '-'))
|
||||||
for m in list(events):
|
for m in list(events):
|
||||||
make_method(f, node.attrib['name'], m, True, name, True)
|
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')
|
f.write('\n')
|
||||||
|
|
||||||
members = node.find('members')
|
members = node.find('members')
|
||||||
|
|
Loading…
Reference in a new issue