summaryrefslogtreecommitdiff
path: root/giscanner/mallard-Python-vfunc.tmpl
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-09 03:11:06 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-01-09 03:16:14 -0500
commit8b23c6c8755bca0b0c58b25ee3c4b06c06d72bcd (patch)
tree6b743fe7fdd23dabcd49b90b8ff35aab358da857 /giscanner/mallard-Python-vfunc.tmpl
parent634961eac7186ec95680916de0b627ea1c7441e7 (diff)
downloadgobject-introspection-8b23c6c8755bca0b0c58b25ee3c4b06c06d72bcd.tar.gz
doc: Put documentation templates into their own directories
Instead of cluttering up the giscanner directory, put templates into their own files, with each language having its own templates in its own directory for comfort.
Diffstat (limited to 'giscanner/mallard-Python-vfunc.tmpl')
-rw-r--r--giscanner/mallard-Python-vfunc.tmpl46
1 files changed, 0 insertions, 46 deletions
diff --git a/giscanner/mallard-Python-vfunc.tmpl b/giscanner/mallard-Python-vfunc.tmpl
deleted file mode 100644
index 0c93abbc..00000000
--- a/giscanner/mallard-Python-vfunc.tmpl
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<page id="${page_id}"
- type="topic"
- style="vfunc"
- xmlns="http://projectmallard.org/1.0/"
- xmlns:api="http://projectmallard.org/experimental/api/"
- xmlns:ui="http://projectmallard.org/experimental/ui/">
- <info>
- <link type="guide" xref="${namespace.name}.${node.parent.name}" group="vfunc"/>
- <title type="link" role="topic">${node.name}</title>
- </info>
- <title>${namespace.name}.${node.parent.name}.${node.name}</title>
-<synopsis><code mime="text/x-python">
-% if len(node.parameters) != 0:
-@accepts(\
-${', '.join((formatter.format_type(arg.type) for arg in node.parameters))}\
-)
-% endif
-@returns(${formatter.format_type(node.retval.type) | x})
-def \
-do_${node.name}(self, \
-${', '.join((arg.argname for arg in node.parameters))}\
-):
-</code></synopsis>
-${formatter.format(node, node.doc)}
-
-% if node.parameters or node.retval:
-<table>
-% for arg, ix in zip(node.parameters, range(len(node.parameters))):
-<tr>
-<td><p>${arg.argname} :</p></td>
-<td>${formatter.format(node, arg.doc)}</td>
-</tr>
-% endfor
-% if node.retval and node.retval.type.ctype != 'void':
-<tr>
-<td><p>Returns :</p></td>
-<td>${formatter.format(node, node.retval.doc)}</td>
-</tr>
-% endif
-</table>
-% endif
-% if node.version:
-<p>Since ${node.version}</p>
-% endif
-</page>