mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
[1.2.0] Configuration documentation now has table of contents
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@518 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
d2fd193bc4
commit
a6bbe60e7c
1
NEWS
1
NEWS
@ -12,6 +12,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
|
! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
|
||||||
! Added percent encoding normalization
|
! Added percent encoding normalization
|
||||||
! XSS attacks smoketest given facelift
|
! XSS attacks smoketest given facelift
|
||||||
|
! Configuration documentation now has table of contents
|
||||||
- Documentation updated
|
- Documentation updated
|
||||||
+ TODO added request Phalanger
|
+ TODO added request Phalanger
|
||||||
+ TODO added request Native compression
|
+ TODO added request Native compression
|
||||||
|
@ -5,3 +5,6 @@ table.constraints {margin:0 0 1em;}
|
|||||||
table.constraints th {text-align:left;padding-left:0.4em;}
|
table.constraints th {text-align:left;padding-left:0.4em;}
|
||||||
table.constraints td {padding-right:0.4em;}
|
table.constraints td {padding-right:0.4em;}
|
||||||
table.constraints td pre {margin:0;}
|
table.constraints td pre {margin:0;}
|
||||||
|
|
||||||
|
#toc {list-style-type:none; font-weight:bold;}
|
||||||
|
#toc ul {list-style-type:disc; font-weight:normal;}
|
||||||
|
@ -23,23 +23,41 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="styles/plain.css" />
|
<link rel="stylesheet" type="text/css" href="styles/plain.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1><xsl:value-of select="/configdoc/title" /> Configuration Documentation</h1>
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<ul id="toc">
|
||||||
|
<xsl:apply-templates mode="toc" />
|
||||||
|
</ul>
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="title">
|
<xsl:template match="title" mode="toc" />
|
||||||
<h1><xsl:value-of select="/configdoc/title" /> Configuration Documentation</h1>
|
<xsl:template match="namespace" mode="toc">
|
||||||
|
<xsl:if test="count(directive)>0">
|
||||||
|
<li>
|
||||||
|
<a href="#{@id}"><xsl:value-of select="name" /></a>
|
||||||
|
<ul>
|
||||||
|
<xsl:apply-templates select="directive" mode="toc" />
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
<xsl:template match="directive" mode="toc">
|
||||||
|
<li><a href="#{@id}"><xsl:value-of select="name" /></a></li>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="title" />
|
||||||
|
|
||||||
<xsl:template match="namespace">
|
<xsl:template match="namespace">
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
<xsl:if test="count(child::directive)=0">
|
<xsl:if test="count(directive)=0">
|
||||||
<p>No configuration directives defined for this namespace.</p>
|
<p>No configuration directives defined for this namespace.</p>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="namespace/name">
|
<xsl:template match="namespace/name">
|
||||||
<h2 id="{../@id}"><xsl:value-of select="text()" /></h2>
|
<h2 id="{../@id}"><xsl:value-of select="." /></h2>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="namespace/description">
|
<xsl:template match="namespace/description">
|
||||||
<div class="description">
|
<div class="description">
|
||||||
@ -51,7 +69,7 @@
|
|||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="directive/name">
|
<xsl:template match="directive/name">
|
||||||
<h3 id="{../@id}"><xsl:value-of select="text()" /></h3>
|
<h3 id="{../@id}"><xsl:value-of select="." /></h3>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="directive/constraints">
|
<xsl:template match="directive/constraints">
|
||||||
<table class="constraints">
|
<table class="constraints">
|
||||||
|
Loading…
Reference in New Issue
Block a user