summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Gjs
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 06:04:11 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 19:54:08 -0500
commitd05e20a61d3e381e46fcb306f806566bbbd76312 (patch)
tree3bd8fa4eaf01e5b7dd08cef188ce15d482418aab /giscanner/doctemplates/Gjs
parent2ebd527a853638eb3c13d00dedca1353dcffb212 (diff)
downloadgobject-introspection-d05e20a61d3e381e46fcb306f806566bbbd76312.tar.gz
doctool: Use format_xref to format some links to pages
We don't do a full 100% conversion for all link tags, yet, because I don't want to break too much here. This may come later.
Diffstat (limited to 'giscanner/doctemplates/Gjs')
-rw-r--r--giscanner/doctemplates/Gjs/function.tmpl6
-rw-r--r--giscanner/doctemplates/Gjs/property.tmpl2
-rw-r--r--giscanner/doctemplates/Gjs/signal.tmpl2
3 files changed, 3 insertions, 7 deletions
diff --git a/giscanner/doctemplates/Gjs/function.tmpl b/giscanner/doctemplates/Gjs/function.tmpl
index 6a43ddb3..e0fd9612 100644
--- a/giscanner/doctemplates/Gjs/function.tmpl
+++ b/giscanner/doctemplates/Gjs/function.tmpl
@@ -1,10 +1,6 @@
<%inherit file="/base.tmpl"/>
<%block name="info">
-% if node.parent is not None:
- <link type="guide" xref="${namespace.name}.${node.parent.name}" group="${page_kind}"/>
-% else:
- <link type="guide" xref="index" group="${page_kind}"/>
-% endif
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
<api:function>
<api:returns>
<api:type>${formatter.format_type(node.retval.type) | x}</api:type>
diff --git a/giscanner/doctemplates/Gjs/property.tmpl b/giscanner/doctemplates/Gjs/property.tmpl
index f05bc820..3316a00c 100644
--- a/giscanner/doctemplates/Gjs/property.tmpl
+++ b/giscanner/doctemplates/Gjs/property.tmpl
@@ -1,6 +1,6 @@
<%inherit file="/base.tmpl"/>
<%block name="info">
- <link type="guide" xref="${namespace.name}.${node.parent.name}" group="property"/>
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
<title type="link" role="topic">${node.name}</title>
</%block>
<%block name="synopsis">
diff --git a/giscanner/doctemplates/Gjs/signal.tmpl b/giscanner/doctemplates/Gjs/signal.tmpl
index a8e900ff..084d9743 100644
--- a/giscanner/doctemplates/Gjs/signal.tmpl
+++ b/giscanner/doctemplates/Gjs/signal.tmpl
@@ -1,6 +1,6 @@
<%inherit file="/base.tmpl"/>
<%block name="info">
- <link type="guide" xref="${namespace.name}.${node.parent.name}" group="signal"/>
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
<title type="link" role="topic">${node.name}</title>
</%block>
<%block name="synopsis">