From 9c7b4c82a7223fe390e475265553f1e88a93b87a Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Wed, 14 Jun 2017 15:48:50 +0200 Subject: Add Signals descriptions when they exist. --- doc/tools/makerst.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/tools/makerst.py') diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 6b6780ce1e..8a117f6450 100644 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -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') -- cgit v1.2.3