[library-web] Add a style class for documentation links



commit 3a53f1a52cc0ef11efb9ce1b764be83ae55b8730
Author: William Jon McCann <william jon mccann gmail com>
Date:   Tue Feb 18 11:29:49 2014 -0500

    Add a style class for documentation links

 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 d8b8d2b..94f305b 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 lang="{ lang}">
+<a class="doc-link" 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 href="{ modulename}/unstable/" lang="{ lang}"><xsl:call-template
+  <a class="doc-link" 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 b799fd8..2efc586 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 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" 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 href="{ href}/" lang="{ lang}"><xsl:apply-templates
+                   <a class="doc-link" 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 href="{ href}/" lang="{ lang}"><xsl:apply-templates
+                   <a class="doc-link" 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 href="{ href}/{$modulename}.html" lang="{ lang}"><xsl:apply-templates
+                    <a class="doc-link" 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 href="{ href}/{$modulename}.html" lang="{ lang}"><xsl:apply-templates
+                    <a class="doc-link" 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 href="{ id}"><xsl:value-of select="title"/></a></h2>
+      <h2><a class="doc-link" 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 href="glib/stable/">GLib</a></strong>,
-<strong><a href="gtk3/stable/">GTK+</a></strong>
-        (<a href="gtkmm/stable/">C++</a>,
-        <a href="http://python-gtk-3-tutorial.readthedocs.org/";>Python</a>,
-        <a href="http://references.valadoc.org/gtk+-3.0/";>Vala</a>),
-<strong><a href="clutter/stable/">Clutter</a></strong>
-        (<a href="cluttermm/unstable/">C++</a>,
-        <a href="http://references.valadoc.org/clutter-1.0/";>Vala</a>),
-<strong><a href="http://www.gstreamer.net/documentation/";>GStreamer</a></strong>
-        (<a href="gstreamermm/unstable/">C++</a>,
-        <a href="http://references.valadoc.org/gstreamer-0.10/";>Vala</a>)
+<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>)
 </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 href="{ path}  /"><xsl:value-of select="title"/></a></li>
+              <li><a class="doc-link" 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]