[library-web] Use target attribute on doc links
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Use target attribute on doc links
- Date: Tue, 18 Feb 2014 23:53:21 +0000 (UTC)
commit 028efbab6fc907606c8a2f7b4781a4070d0c0fb9
Author: William Jon McCann <william jon mccann gmail com>
Date: Tue Feb 18 11:52:08 2014 -0500
Use target attribute on doc links
Since target-new CSS doesn't seem to be supported.
data/xslt/common_indexes.xsl | 4 ++--
data/xslt/dev_indexes.xsl | 36 ++++++++++++++++++------------------
2 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/data/xslt/common_indexes.xsl b/data/xslt/common_indexes.xsl
index 94f305b..c062938 100644
--- a/data/xslt/common_indexes.xsl
+++ b/data/xslt/common_indexes.xsl
@@ -171,7 +171,7 @@ $lang]"/>
<xsl:attribute name="class">upcoming-deprecation</xsl:attribute>
</xsl:if>
<xsl:if test="@icon"><img class="application-icon" alt=""><xsl:attribute name="src"><xsl:value-of
select="@icon"/></xsl:attribute></img></xsl:if>
-<a class="doc-link" lang="{ lang}">
+<a class="doc-link" target="_blank" lang="{ lang}">
<xsl:attribute name="href">
<xsl:if test="@path"><xsl:value-of select="@path"/></xsl:if>
<xsl:if test="@href"><xsl:value-of select="@href"/></xsl:if>
@@ -220,7 +220,7 @@ $lang]"/>
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="$lang"/><xsl:with-param name="msgid"
select="'see-also'"/></xsl:call-template><xsl:text> </xsl:text>
- <a class="doc-link" href="{ modulename}/unstable/" lang="{ lang}"><xsl:call-template
+ <a class="doc-link" target="_blank" href="{ modulename}/unstable/" lang="{ lang}"><xsl:call-template
name="gettext"><xsl:with-param name="lang"
select="$lang"/><xsl:with-param name="msgid"
select="'development-version-doc'"/></xsl:call-template></a>
diff --git a/data/xslt/dev_indexes.xsl b/data/xslt/dev_indexes.xsl
index 2efc586..960e9f0 100644
--- a/data/xslt/dev_indexes.xsl
+++ b/data/xslt/dev_indexes.xsl
@@ -80,7 +80,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<div id="container" class="two_columns">
<div class="container_12">
<div class="page_title">
- <h1 class="article title"><xsl:if test="@icon"><img class="application-icon" alt=""><xsl:attribute
name="src"><xsl:value-of select="@icon"/></xsl:attribute></img></xsl:if><a class="doc-link" href="{ path}"
lang="{ lang}"><xsl:value-of select="title"/></a></h1>
+ <h1 class="article title"><xsl:if test="@icon"><img class="application-icon" alt=""><xsl:attribute
name="src"><xsl:value-of select="@icon"/></xsl:attribute></img></xsl:if><a class="doc-link" target="_blank"
href="{ path}" lang="{ lang}"><xsl:value-of select="title"/></a></h1>
</div>
<div class="content">
<xsl:if test="abstract">
@@ -107,13 +107,13 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<li>
<xsl:choose>
<xsl:when test="@keyword = 'stable'"><strong>
- <a class="doc-link" href="{ href}/" lang="{ lang}"><xsl:apply-templates
+ <a class="doc-link" target="_blank" href="{ href}/" lang="{ lang}"><xsl:apply-templates
select="." mode="version-name"><xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates></a>
</strong>
</xsl:when>
<xsl:otherwise>
- <a class="doc-link" href="{ href}/" lang="{ lang}"><xsl:apply-templates
+ <a class="doc-link" target="_blank" href="{ href}/" lang="{ lang}"><xsl:apply-templates
select="." mode="version-name"><xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates></a>
</xsl:otherwise>
@@ -136,13 +136,13 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<li>
<xsl:choose>
<xsl:when test="@keyword = 'stable'"><strong>
- <a class="doc-link" href="{ href}/{$modulename}.html" lang="{ lang}"><xsl:apply-templates
+ <a class="doc-link" target="_blank" href="{ href}/{$modulename}.html" lang="{
lang}"><xsl:apply-templates
select="." mode="version-name"><xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates></a>
</strong>
</xsl:when>
<xsl:otherwise>
- <a class="doc-link" href="{ href}/{$modulename}.html" lang="{ lang}"><xsl:apply-templates
+ <a class="doc-link" target="_blank" href="{ href}/{$modulename}.html" lang="{
lang}"><xsl:apply-templates
select="." mode="version-name"><xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates></a>
</xsl:otherwise>
@@ -286,7 +286,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<xsl:template match="index" mode="channelindex">
<div class="subindex" id="subindex-{ id}">
- <h2><a class="doc-link" href="{ id}"><xsl:value-of select="title"/></a></h2>
+ <h2><a class="doc-link" target="_blank" href="{ id}"><xsl:value-of select="title"/></a></h2>
<xsl:if test="abstract">
<p><xsl:value-of select="abstract"/></p>
</xsl:if>
@@ -546,17 +546,17 @@ jQuery('#s2').autocomplete('/symbols/lookup/',
selectOnly:1, rowsLimit:25 });
</script>
<p>
-<strong><a class="doc-link" href="glib/stable/">GLib</a></strong>,
-<strong><a class="doc-link" href="gtk3/stable/">GTK+</a></strong>
- (<a class="doc-link" href="gtkmm/stable/">C++</a>,
- <a class="doc-link" href="http://python-gtk-3-tutorial.readthedocs.org/">Python</a>,
- <a class="doc-link" href="http://references.valadoc.org/gtk+-3.0/">Vala</a>),
-<strong><a class="doc-link" href="clutter/stable/">Clutter</a></strong>
- (<a class="doc-link" href="cluttermm/unstable/">C++</a>,
- <a class="doc-link" href="http://references.valadoc.org/clutter-1.0/">Vala</a>),
-<strong><a class="doc-link" href="http://www.gstreamer.net/documentation/">GStreamer</a></strong>
- (<a class="doc-link" href="gstreamermm/unstable/">C++</a>,
- <a class="doc-link" href="http://references.valadoc.org/gstreamer-0.10/">Vala</a>)
+<strong><a class="doc-link" target="_blank" href="glib/stable/">GLib</a></strong>,
+<strong><a class="doc-link" target="_blank" href="gtk3/stable/">GTK+</a></strong>
+ (<a class="doc-link" target="_blank" href="gtkmm/stable/">C++</a>,
+ <a class="doc-link" target="_blank" href="http://python-gtk-3-tutorial.readthedocs.org/">Python</a>,
+ <a class="doc-link" target="_blank" href="http://references.valadoc.org/gtk+-3.0/">Vala</a>),
+<strong><a class="doc-link" target="_blank" href="clutter/stable/">Clutter</a></strong>
+ (<a class="doc-link" target="_blank" href="cluttermm/unstable/">C++</a>,
+ <a class="doc-link" target="_blank" href="http://references.valadoc.org/clutter-1.0/">Vala</a>),
+<strong><a class="doc-link" target="_blank"
href="http://www.gstreamer.net/documentation/">GStreamer</a></strong>
+ (<a class="doc-link" target="_blank" href="gstreamermm/unstable/">C++</a>,
+ <a class="doc-link" target="_blank" href="http://references.valadoc.org/gstreamer-0.10/">Vala</a>)
</p>
@@ -725,7 +725,7 @@ jQuery('#s2').autocomplete('/symbols/lookup/',
<xsl:for-each select="index[ lang=$lang]//document">
<xsl:if test="keywords/keyword[. = 'upcoming-deprecation'] and @path">
<xsl:message>deprecated: <xsl:value-of select="title"/></xsl:message>
- <li><a class="doc-link" href="{ path} /"><xsl:value-of select="title"/></a></li>
+ <li><a class="doc-link" target="_blank" href="{ path} /"><xsl:value-of
select="title"/></a></li>
</xsl:if>
</xsl:for-each>
</ul>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]