[gobject-introspection/mallard-templates] g-ir-doc-tool: Add links to properties in the constructor



commit aec162ff6ac3cd7b00634975f98eff8e9e79fb10
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Mon Feb 20 13:16:47 2012 +0100

    g-ir-doc-tool: Add links to properties in the constructor

 giscanner/mallard-Python-class.tmpl                |    4 ++--
 .../GIRepository.Repository.page                   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl
index d45b0ab..feae1d1 100644
--- a/giscanner/mallard-Python-class.tmpl
+++ b/giscanner/mallard-Python-class.tmpl
@@ -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
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
index eb46627..dda7295 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
@@ -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"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]