summaryrefslogtreecommitdiff
path: root/stylesheets
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2004-12-05 17:52:12 +0000
committerShaun McCance <shaunm@src.gnome.org>2004-12-05 17:52:12 +0000
commit8a811367c35bdf88a584c0badfae11bd93fce896 (patch)
tree8378b09a9cb42af66555ddc21dc7d4bee0346537 /stylesheets
parentf9dbb6db9911b385a24126801695fa2c4c3a4998 (diff)
downloadyelp-8a811367c35bdf88a584c0badfae11bd93fce896.tar.gz
- Got the man pages listed in the TOC
* data/Makefile.am: * data/man.xml.in: * data/toc.xml.in: * po/POTFILES.in: * po/wa.po: * src/yelp-toc-pager.c: * src/yelp-utils.c: * src/yelp-utils.h: * stylesheets/toc2html.xsl: - Got the man pages listed in the TOC
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/toc2html.xsl37
1 files changed, 13 insertions, 24 deletions
diff --git a/stylesheets/toc2html.xsl b/stylesheets/toc2html.xsl
index 4d90b865..a37edbb1 100644
--- a/stylesheets/toc2html.xsl
+++ b/stylesheets/toc2html.xsl
@@ -22,7 +22,8 @@
padding-left: 0px;
padding-right: 12px;
}
- h1 { font-size: 2em; }
+ h1 { font-size: 2em; margin-bottom: 0.4em; }
+ h1 img { float: right; }
div[class~="leftbar"] {
width: 200px;
text-align: center;
@@ -66,37 +67,20 @@
<xsl:apply-templates select="toc[.//doc]"/>
</xsl:template>
-<xsl:template mode="body.mode" match="toc[@id = 'index']">
- <div class="body">
- <div class="rightbar">
- <h1>
- <xsl:apply-templates select="title[1]/node()"/>
- </h1>
- <div class="tocs">
- <ul>
- <xsl:for-each select="toc">
- <li class="toc">
- <a href="x-yelp-toc:{@id}">
- <xsl:apply-templates select="title[1]/node()"/>
- </a>
- </li>
- </xsl:for-each>
- </ul>
- </div>
- </div>
- </div>
-</xsl:template>
-
<xsl:template mode="body.mode" match="toc">
<div class="body">
<div class="rightbar">
<h1>
+ <xsl:if test="icon">
+ <img src="{icon/@file}"/>
+ </xsl:if>
<xsl:apply-templates select="title[1]/node()"/>
</h1>
<xsl:if test="toc[.//doc]">
<div class="tocs">
<ul>
- <xsl:for-each select="toc[.//doc]">
+ <xsl:for-each select="toc[../@id = 'index' or .//doc]">
+ <xsl:sort select="number(../@id = 'index') * position()"/>
<xsl:sort select="title"/>
<li class="toc">
<a href="x-yelp-toc:{@id}">
@@ -113,7 +97,12 @@
<xsl:for-each select="doc">
<xsl:sort select="title"/>
<dt class="doc">
- <a href="{@href}">
+ <a href="{@href}" title="{@href}">
+ <xsl:if test="tooltip">
+ <xsl:attribute name="title">
+ <xsl:value-of select="tooltip"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:value-of select="title"/>
</a>
</dt>