Author: artdaw
Date: 2008-06-20 05:39:07 -0400 (Fri, 20 Jun 2008)
New Revision: 9128
Added:
trunk/docs/userguide/en/src/main/resources/images/new.png
trunk/docs/userguide/en/src/main/resources/images/updated.png
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
trunk/docs/userguide/en/src/main/resources/css/html.css
trunk/docs/userguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
Log:
http://jira.jboss.com/jira/browse/RF-3189 - Markers for new and updated info in TOC were
added to Dev. Guide
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-06-19
22:46:42 UTC (rev 9127)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-06-20
09:39:07 UTC (rev 9128)
@@ -1534,7 +1534,7 @@
</para>
</section>
- <section id="ScriptsandStylesLoadStrategy">
+ <section id="ScriptsandStylesLoadStrategy" role="updated">
<?dbhtml filename="ScriptsandStylesLoadStrategy" ?>
<title>Scripts and Styles Load Strategy</title>
<para>
@@ -3662,7 +3662,7 @@
</section>
- <section id="StPlug-n-Skin">
+ <section id="StPlug-n-Skin" role="new">
<title>Plug-n-Skin</title>
<para>
Modified: trunk/docs/userguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/userguide/en/src/main/resources/css/html.css 2008-06-19 22:46:42 UTC (rev
9127)
+++ trunk/docs/userguide/en/src/main/resources/css/html.css 2008-06-20 09:39:07 UTC (rev
9128)
@@ -75,4 +75,12 @@
color:#000000;
font-size:12px;
font-family:courier;
-}
\ No newline at end of file
+}
+a.new {
+background:transparent url(../images/new.png) no-repeat scroll right top;
+padding-right:70px;
+}
+a.updated {
+background:transparent url(../images/updated.png) no-repeat scroll right top;
+padding-right:70px;
+}
\ No newline at end of file
Added: trunk/docs/userguide/en/src/main/resources/images/new.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/new.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/userguide/en/src/main/resources/images/updated.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/updated.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified:
trunk/docs/userguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl
===================================================================
---
trunk/docs/userguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-06-19
22:46:42 UTC (rev 9127)
+++
trunk/docs/userguide/en/src/main/resources/xslt/org/jboss/richfaces/xhtml-common.xsl 2008-06-20
09:39:07 UTC (rev 9128)
@@ -63,4 +63,70 @@
<xsl:apply-templates select="."
mode="head.keywords.content"/>
</xsl:template>
+<xsl:template name="toc.line">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:param name="depth" select="1"/>
+ <xsl:param name="depth.from.context" select="8"/>
+
+ <span>
+ <xsl:attribute name="class"><xsl:value-of
select="local-name(.)"/></xsl:attribute>
+
+ <!-- * if $autotoc.label.in.hyperlink is zero, then output the label -->
+ <!-- * before the hyperlinked title (as the DSSSL stylesheet does) -->
+ <xsl:if test="$autotoc.label.in.hyperlink = 0">
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ </xsl:if>
+
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="context" select="$toc-context"/>
+ <xsl:with-param name="toc-context"
select="$toc-context"/>
+ </xsl:call-template>
+ </xsl:attribute>
+
+<xsl:choose>
+<xsl:when test="@role='new'">
+<xsl:attribute name="class">
+<xsl:value-of select="@role"/>
+</xsl:attribute>
+</xsl:when>
+<xsl:when test="@role='updated'">
+<xsl:attribute name="class">
+<xsl:value-of select="@role"/>
+</xsl:attribute>
+</xsl:when>
+</xsl:choose>
+
+ <!-- * if $autotoc.label.in.hyperlink is non-zero, then output the label -->
+ <!-- * as part of the hyperlinked title -->
+ <xsl:if test="not($autotoc.label.in.hyperlink = 0)">
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ </xsl:if>
+
+ <xsl:apply-templates select="."
mode="titleabbrev.markup"/>
+ </a>
+ </span>
+</xsl:template>
+
+<xsl:template match="book" mode="toc">
+ <xsl:param name="toc-context" select="."/>
+
+ <xsl:call-template name="subtoc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="nodes" select="part|reference
|preface|chapter|appendix |article |bibliography|glossary|index |refentry
|bridgehead[$bridgehead.in.toc != 0]"/>
+ </xsl:call-template>
+</xsl:template>
</xsl:stylesheet>