summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/doctemplates/devdocs/Gjs/_signals.tmpl')
-rw-r--r--giscanner/doctemplates/devdocs/Gjs/_signals.tmpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl b/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl
new file mode 100644
index 00000000..4065df83
--- /dev/null
+++ b/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl
@@ -0,0 +1,20 @@
+<%namespace name="method" file="_method.tmpl"/>
+% if getattr(node, 'signals', []):
+ <h2>Signal Details</h2>
+ % for s in node.signals:
+ <h3>
+ <span class="entry signal" id="${formatter.make_anchor(s)}">
+ ${s.name}<!-- no space
+ --></span><!--
+ -->(${formatter.format_in_parameters(s)})
+ </h3>
+ <dl>
+ <dt>Flags</dt>
+ <dd>${formatter.format_signal_flags(s)}</dd>
+ ${method.describe_parameters(s)}
+ </dl>
+ % if s.doc:
+ ${formatter.format(node, s.doc)}
+ % endif
+ % endfor
+% endif