diff options
author | John Resig <jeresig@gmail.com> | 2006-09-01 07:41:59 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-09-01 07:41:59 +0000 |
commit | 905a0ae351260b38ca2fba4e470d77524f62ffa4 (patch) | |
tree | 34ccd584d7175d18abf648e3fc3d0d481bac9fb8 /build/docs | |
parent | 484af2a45aba1ab7955a8b3de43e875911b123a7 (diff) | |
download | jquery-905a0ae351260b38ca2fba4e470d77524f62ffa4.tar.gz jquery-905a0ae351260b38ca2fba4e470d77524f62ffa4.zip |
Added style sheet for the category documentation.
Diffstat (limited to 'build/docs')
-rw-r--r-- | build/docs/style/cat.css | 22 | ||||
-rw-r--r-- | build/docs/style/cat.xsl | 33 |
2 files changed, 55 insertions, 0 deletions
diff --git a/build/docs/style/cat.css b/build/docs/style/cat.css new file mode 100644 index 000000000..e84f08f27 --- /dev/null +++ b/build/docs/style/cat.css @@ -0,0 +1,22 @@ +html, body { + background: #FFF; + color: #000; + font-family: Arial; + font-size: 12px; +} + +h2 { + clear: both; + border-bottom: 1px solid #EEE; + margin-top: 15px; +} + +ul { + list-style: none; + overflow: auto; +} + +li { + float: left; + width: 20%; +} diff --git a/build/docs/style/cat.xsl b/build/docs/style/cat.xsl new file mode 100644 index 000000000..c4a20a407 --- /dev/null +++ b/build/docs/style/cat.xsl @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> +<xsl:output method="html"/> + <xsl:template match="/docs"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>jQuery Printable API</title> + <link rel="stylesheet" href="style/cat.css"/> + </head> + <body> + <h1>jQuery Printable API</h1> + <xsl:apply-templates/> + </body> + </html> + </xsl:template> + + <xsl:template match="cat"> + <h2><xsl:value-of select="@value"/></h2> + <ul class="list"> + <xsl:for-each select="method[not(@private)]"> + <xsl:sort select="@name"/> + <xsl:sort select="count(params)"/> + <li> + <xsl:value-of select="@name"/>(<xsl:for-each select="params"> + <xsl:value-of select="@name"/> + <xsl:if test="position() != last()">, </xsl:if> + </xsl:for-each>) + </li> + </xsl:for-each> + <xsl:apply-templates select="cat"/> + </ul> + </xsl:template> +</xsl:stylesheet> |