From 8b23c6c8755bca0b0c58b25ee3c4b06c06d72bcd Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 9 Jan 2013 03:11:06 -0500 Subject: 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. --- giscanner/mallard-C-function.tmpl | 95 --------------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 giscanner/mallard-C-function.tmpl (limited to 'giscanner/mallard-C-function.tmpl') diff --git a/giscanner/mallard-C-function.tmpl b/giscanner/mallard-C-function.tmpl deleted file mode 100644 index 051fb0b0..00000000 --- a/giscanner/mallard-C-function.tmpl +++ /dev/null @@ -1,95 +0,0 @@ - -<% -page_style = 'function' -if node.is_constructor: - page_style = 'constructor' -elif node.is_method: - page_style = 'method' -%> - - -% if node.parent is not None: - -% else: - -% endif - - - ${formatter.format_type(node.retval.type) | x} - - ${node.symbol} -% if node.is_method: - - ${node.parent.ctype} * - self - -% endif -% for arg in node.parameters: -% if arg.type.ctype == '': - -% else: - - ${formatter.format_type(arg.type) | x} - ${arg.argname} - -% endif -% endfor - - - ${node.symbol} - -${node.retval.type.ctype} ${node.symbol} (\ -% if node.is_method: -${node.parent.ctype} *self\ -%endif -% if len(node.parameters) == 0: -% if not node.is_method: -void\ -%endif -); -% elif node.is_method: -, -% endif -% for arg, ix in zip(node.parameters, range(len(node.parameters))): -% if ix != 0: -${' ' * (len(formatter.format_type(node.retval.type)) + len(node.symbol) + 3)}\ -% endif -% if arg.type.ctype == '': -...\ -% else: -${formatter.format_type(arg.type) | x} ${arg.argname}\ -% endif -% if ix == len(node.parameters) - 1: -); -% else: -, -%endif -% endfor - -${formatter.format(node, node.doc)} - -% if node.parameters or node.retval: - -% for arg, ix in zip(node.parameters, range(len(node.parameters))): - - - - -% endfor -% if node.retval: - - - - -% endif -

${arg.argname} :

${formatter.format(node, arg.doc)}

Returns :

${formatter.format(node, node.retval.doc)}
-% endif -% if node.version: -

Since ${node.version}

-% endif -
-- cgit v1.2.1