diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-02-14 13:41:30 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-02-14 13:41:30 +0000 |
commit | 0892e5830588b9b621eef76414c2848df3ccbb0e (patch) | |
tree | 0388db74b90ecbb7bb41e96d749668a8a41eeb27 /manual/xsl | |
parent | 9d548f998b94dcc5e04496740aead50f2b9f5f07 (diff) |
Manual style updates:
Added definitions for the Important and Warning admonitions in the
formatting section.
Removed the caution admonition from the formatting conventions section
Add Tango icons and use them for admonition graphics aswell as some
xsl and css to make them look better.
Removed the table border from the manual navigation
git-svn-id: svn://localhost/ardour2/trunk@1458 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'manual/xsl')
-rw-r--r-- | manual/xsl/html.xsl | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/manual/xsl/html.xsl b/manual/xsl/html.xsl index 01757fa52c..f8ddf14e34 100644 --- a/manual/xsl/html.xsl +++ b/manual/xsl/html.xsl @@ -15,6 +15,35 @@ <xsl:param name="html.ext" select="'.html'"/> <xsl:output method="html" indent="yes"/> +<!-- Admonition Graphics --> +<xsl:param name="admon.graphics" select="1"/> +<xsl:param name="admon.graphics.path">./images/tango-icons/</xsl:param> +<xsl:param name="callout.graphics.path">./images/tango-icons/</xsl:param> + +<!-- Remove table and inline style from admonitions --> + +<xsl:template name="graphical.admonition"> + <xsl:variable name="admon.type"> + <xsl:choose> + <xsl:when test="local-name(.)='note'">Note</xsl:when> + <xsl:when test="local-name(.)='warning'">Warning</xsl:when> + <xsl:when test="local-name(.)='caution'">Caution</xsl:when> + <xsl:when test="local-name(.)='tip'">Tip</xsl:when> + <xsl:when test="local-name(.)='important'">Important</xsl:when> + <xsl:otherwise>Note</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}"> + <xsl:call-template name="anchor"/> + <xsl:if test="$admon.textlabel != 0 or title"> + <h2 class="title"> + <xsl:apply-templates select="." mode="object.title.markup"/> + </h2> + </xsl:if> + <xsl:apply-templates/> + </div> +</xsl:template> + <!-- I'm not using draft mode because with at least the version of the stylesheets I have it inserts inline css. I'm not aware @@ -113,6 +142,7 @@ part toc <!-- Limit TOC depth to 1 level --> <xsl:param name="toc.section.depth">1</xsl:param> +<!-- <xsl:template name="nongraphical.admonition"> <div class="{name(.)}"> <h2 class="title"> @@ -124,5 +154,5 @@ part toc <xsl:apply-templates/> </div> </xsl:template> - +--> </xsl:stylesheet> |