1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Add Signals descriptions when they exist

This commit is contained in:
Julian Murgia
2017-06-14 15:26:11 +02:00
parent dc420b3b0a
commit e15162ccc3
2 changed files with 12 additions and 0 deletions

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')