summaryrefslogtreecommitdiff
path: root/giscanner/mallard-Python-function.tmpl
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-18 11:59:17 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-18 11:59:17 +0100
commitc0957ef98c0d736cb524e6f5c53cf2d16834d313 (patch)
tree5fccbedf9057dcaba2b45f7b6252da0026d7217c /giscanner/mallard-Python-function.tmpl
parent8a1d53bde3b97081d07a251032fe7fed6448cce7 (diff)
downloadgobject-introspection-c0957ef98c0d736cb524e6f5c53cf2d16834d313.tar.gz
g-ir-doctool: Add argument docs to the Python template
Diffstat (limited to 'giscanner/mallard-Python-function.tmpl')
-rw-r--r--giscanner/mallard-Python-function.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/giscanner/mallard-Python-function.tmpl b/giscanner/mallard-Python-function.tmpl
index 3ae28f33..b3c74a43 100644
--- a/giscanner/mallard-Python-function.tmpl
+++ b/giscanner/mallard-Python-function.tmpl
@@ -68,4 +68,21 @@ ${arg.argname}\
)
</code></synopsis>
${formatter.format(node.doc)}
+
+% if node.parameters:
+<table>
+% for arg, ix in zip(node.parameters, range(len(node.parameters))):
+<tr>
+<td><p>${arg.argname} :</p></td>
+<td>${formatter.format(arg.doc)}</td>
+</tr>
+% endfor
+% if node.retval:
+<tr>
+<td><p>Returns :</p></td>
+<td>${formatter.format(node.retval.doc)}</td>
+</tr>
+% endif
+</table>
+% endif
</page>