Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
g-ir-doc-tool: Add links to properties in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeuv committed Feb 20, 2012
1 parent 2adc4d2 commit aec162f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions giscanner/mallard-Python-class.tmpl
Expand Up @@ -22,11 +22,11 @@ ${formatter.format(node.doc)}
</tree>
</synopsis>
<p>Constructor</p>
<synopsis><code mime="text/x-python">
<synopsis><code>
${formatter.to_underscores(node.name).lower()} = ${node.name}(\
% for property_, ix in zip(node.properties, range(len(node.properties))):
% if property_.construct or property_.construct_only or property_.writable:
${property_.name.replace('-', '_')}=value\
<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
% if ix != len(node.properties) - 1:
, \
% endif
Expand Down
Expand Up @@ -19,7 +19,7 @@
</tree>
</synopsis>
<p>Constructor</p>
<synopsis><code mime="text/x-python">
<synopsis><code>
repository = Repository() </code></synopsis>
<links type="topic" ui:expanded="yes"
api:type="function" api:mime="text/x-python"
Expand Down

0 comments on commit aec162f

Please sign in to comment.