diff options
author | Joshua Slive <slive@apache.org> | 2002-02-15 17:07:28 +0100 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2002-02-15 17:07:28 +0100 |
commit | ebcf1d624ac3886f5dd4f2501cfd214492bde381 (patch) | |
tree | ab8308e8d7471f3bbf8d4896c0d3bd9e6247a66b /docs | |
parent | Fix ap_directory_walk() per-dir merge bug seen when no <Directory /> is (diff) | |
download | apache2-ebcf1d624ac3886f5dd4f2501cfd214492bde381.tar.xz apache2-ebcf1d624ac3886f5dd4f2501cfd214492bde381.zip |
Change the format slightly so that each "context" get's its own tag in
a <contextlist>. This should make it easier to, for example, generate
an index of all the directives available in a certain context.
Also, add a css stylesheet, turn off link underlining, and turn all the
directive and module names green. Further refinement necessary for sure.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93427 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manual/mod/mod_setenvif.xml | 16 | ||||
-rw-r--r-- | docs/manual/style/manual.css | 12 | ||||
-rw-r--r-- | docs/manual/style/manual.xsl | 47 |
3 files changed, 59 insertions, 16 deletions
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml index 41bc4ddb04..4d4a85d743 100644 --- a/docs/manual/mod/mod_setenvif.xml +++ b/docs/manual/mod/mod_setenvif.xml @@ -39,7 +39,9 @@ on characteristics of the request</description> <syntax>BrowserMatch <em>regex env-variable</em>[=<em>value</em>] [<em>env-variable</em>[=<em>value</em>]] ...</syntax> <default><i>none</i></default> -<context>server config, virtual host, directory, .htaccess</context> +<contextlist><context>server config</context> +<context>virtual host</context><context>directory</context> +<context>.htaccess</context></contextlist> <override>FileInfo</override> <compatibility>Apache 1.2 and above (in Apache 1.2 this directive was found in the @@ -102,7 +104,9 @@ respect to case</description> <syntax>BrowserMatchNoCase <em>regex env-variable</em>[=<em>value</em>] [<em>env-variable</em>[=<em>value</em>]] ...</syntax> <default><em>none</em></default> -<context>server config, virtual host, directory, .htaccess</context> +<contextlist><context>server config</context> +<context>virtual host</context><context>directory</context> +<context>.htaccess</context></contextlist> <override>FileInfo</override> <compatibility>Apache 1.2 and above (in Apache 1.2 this directive was found in the @@ -140,7 +144,9 @@ respect to case</description> regex env-variable</em>[=<em>value</em>] [<em>env-variable</em>[=<em>value</em>]] ...</syntax> <default><em>none</em></default> -<context> server config, virtual host, directory, .htaccess</context> +<contextlist><context>server config</context> +<context>virtual host</context><context>directory</context> +<context>.htaccess</context></contextlist> <override>FileInfo</override> <compatibility>Apache 1.3 and above; the Request_Protocol keyword and environment-variable @@ -234,7 +240,9 @@ without respect to case</description> <syntax>SetEnvIfNoCase <em>attribute regex env-variable</em>[=<em>value</em>] [<em>env-variable</em>[=<em>value</em>]] ...</syntax> <default><em>none</em></default> -<context>server config, virtual host, directory, .htaccess</context> +<contextlist><context>server config</context> +<context>virtual host</context><context>directory</context> +<context>.htaccess</context></contextlist> <override>FileInfo</override> <compatibility>Apache 1.3 and above</compatibility> diff --git a/docs/manual/style/manual.css b/docs/manual/style/manual.css new file mode 100644 index 0000000000..4d0482f8aa --- /dev/null +++ b/docs/manual/style/manual.css @@ -0,0 +1,12 @@ +body {background: white; + text: black; } + +.help { font-weight: bold } + +.directive { color: green; } + +.module { color: green; } + +a:link { text-decoration: none } +a:hover { text-decoration: underline } +a:visited { text-decoration: none } diff --git a/docs/manual/style/manual.xsl b/docs/manual/style/manual.xsl index 6b7c188a33..6617581728 100644 --- a/docs/manual/style/manual.xsl +++ b/docs/manual/style/manual.xsl @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1"?> - +<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -16,9 +16,15 @@ <xsl:template match="modulesynopsis"> <html> + +<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from xml source: DO NOT EDIT + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> + <head> - <xsl:apply-templates select="meta"/> - <title><xsl:value-of select="name"/> - Apache HTTP Server</title> + <xsl:apply-templates select="meta"/> + <title><xsl:value-of select="name"/> - Apache HTTP Server</title> + <link rel="stylesheet" type="text/css" href="../style/manual.css" /> </head> <body> @@ -36,14 +42,16 @@ <table bgcolor="#cccccc" cellpadding="0" cellspacing="1"> <tr><td> <table bgcolor="#ffffff"> -<tr><td><strong>Description:</strong> </td> +<tr><td><span class="help">Description:</span> </td> <td><xsl:apply-templates select="description"/></td></tr> -<tr><td><a class="help" href="module-dict.html#Status"><strong>Status:</strong></a> </td> +<tr><td><a class="help" href="module-dict.html#Status">Status:</a> </td> <td><xsl:value-of select="status"/></td></tr> -<tr><td><a class="help" href="module-dict.html#ModuleIdentifier"><strong>Module Identifier:</strong></a> </td> +<tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module Identifier:</a> </td> <td><xsl:value-of select="identifier"/></td></tr> -<tr><td><a class="help" href="module-dict.html#Compatibility"><strong>Compatibility:</strong></a> </td> +<xsl:if test="compatibility"> +<tr><td><a class="help" href="module-dict.html#Compatibility">Compatibility:</a> </td> <td><xsl:apply-templates select="compatibility"/></td></tr> +</xsl:if> </table> </td></tr> </table> @@ -123,22 +131,28 @@ <table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"> <tr><td> <table bgcolor="#ffffff" width="100%"> -<tr><td><strong>Description:</strong> </td> +<tr><td>Description: </td> <td><xsl:value-of select="description"/></td></tr> <tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a> </td> <td><xsl:apply-templates select="syntax"/></td></tr> +<xsl:if test="default"> <tr><td><a class="help" href="directive-dict.html#Default">Default:</a> </td> <td><code><xsl:value-of select="default"/></code></td></tr> +</xsl:if> <tr><td><a class="help" href="directive-dict.html#Context">Context:</a> </td> -<td><xsl:value-of select="context"/></td></tr> +<td><xsl:apply-templates select="contextlist"/></td></tr> +<xsl:if test="override"> <tr><td><a class="help" href="directive-dict.html#Override">Override:</a> </td> <td><xsl:value-of select="override"/></td></tr> +</xsl:if> <tr><td><a class="help" href="directive-dict.html#Status">Status:</a> </td> <td><xsl:value-of select="/modulesynopsis/status"/></td></tr> <tr><td><a class="help" href="directive-dict.html#Module">Module:</a> </td> <td><xsl:value-of select="/modulesynopsis/name"/></td></tr> +<xsl:if test="compatibility"> <tr><td><a class="help" href="directive-dict.html#Compatibility">Compatibility:</a> </td> <td><xsl:value-of select="compatibility"/></td></tr> +</xsl:if> </table> </td></tr></table> <xsl:apply-templates select="usage"/> @@ -155,6 +169,15 @@ <hr /> </xsl:template> + <xsl:template match="contextlist"> + <xsl:apply-templates select="context"/> + </xsl:template> + + <xsl:template match="context"> + <xsl:value-of select="." /> + <xsl:if test="not(position()=last())">, </xsl:if> + </xsl:template> + <xsl:template match="example"> <blockquote> <table cellpadding="10"><tr><td bgcolor="#eeeeee"> @@ -181,7 +204,7 @@ </xsl:template> <xsl:template match="directive"> - <code> + <code class="directive"> <xsl:if test="@module"> <xsl:variable name="module"> <xsl:value-of select="./@module"/> @@ -190,10 +213,10 @@ <xsl:value-of select="."/> </xsl:variable> <xsl:if test="@module=/modulesynopsis/name"> - <a href="#{$directive}"><xsl:value-of select="."/></a> + <a class="directive" href="#{$directive}"><xsl:value-of select="."/></a> </xsl:if> <xsl:if test="@module!=/modulesynopsis/name"> - <a href="{$module}.html#{$directive}"><xsl:value-of select="."/></a> + <a class="directive" href="{$module}.html#{$directive}"><xsl:value-of select="."/></a> </xsl:if> </xsl:if> <xsl:if test="not(@module)"> |