1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

First crack at the automatic directive index. Now the only thing that

needs to be done if a new module is added is to stick it in allmodules.xml.
The directives will then get included in the index.

The technique in the xsl stylesheet can surely be improved, and we can
also now do fancy stuff like having a "quick reference" which includes
syntax/etc.  But this is a good start.

I haven't committed the html output of this yet, because there are still
a few modules yet to be converted to xml.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joshua Slive
2002-03-09 22:42:54 +00:00
parent 964a10a90e
commit 2a9502d927
3 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<modulelist>
<modulefile>core.xml</modulefile>
<modulefile>mod_access.xml</modulefile>
<modulefile>mod_actions.xml</modulefile>
<modulefile>mod_alias.xml</modulefile>
<modulefile>mod_asis.xml</modulefile>
<modulefile>mod_auth.xml</modulefile>
<modulefile>mod_auth_anon.xml</modulefile>
<modulefile>mod_auth_dbm.xml</modulefile>
<modulefile>mod_auth_digest.xml</modulefile>
<modulefile>mod_autoindex.xml</modulefile>
<modulefile>mod_cern_meta.xml</modulefile>
<modulefile>mod_cgi.xml</modulefile>
<modulefile>mod_cgid.xml</modulefile>
<modulefile>mod_charset_lite.xml</modulefile>
<modulefile>mod_dav.xml</modulefile>
<modulefile>mod_deflate.xml</modulefile>
<modulefile>mod_dir.xml</modulefile>
<modulefile>mod_env.xml</modulefile>
<modulefile>mod_example.xml</modulefile>
<modulefile>mod_ext_filter.xml</modulefile>
<modulefile>mod_file_cache.xml</modulefile>
<modulefile>mod_headers.xml</modulefile>
<modulefile>mod_imap.xml</modulefile>
<modulefile>mod_include.xml</modulefile>
<modulefile>mod_info.xml</modulefile>
<modulefile>mod_isapi.xml</modulefile>
<modulefile>mod_log_config.xml</modulefile>
<modulefile>mod_mime.xml</modulefile>
<modulefile>mod_mime_magic.xml</modulefile>
<modulefile>mod_negotiation.xml</modulefile>
<modulefile>mod_proxy.xml</modulefile>
<modulefile>mod_rewrite.xml</modulefile>
<modulefile>mod_setenvif.xml</modulefile>
<modulefile>mod_so.xml</modulefile>
<modulefile>mod_speling.xml</modulefile>
<modulefile>mod_status.xml</modulefile>
<modulefile>mod_suexec.xml</modulefile>
<modulefile>mod_unique_id.xml</modulefile>
<modulefile>mod_userdir.xml</modulefile>
<modulefile>mod_usertrack.xml</modulefile>
<modulefile>mod_vhost_alias.xml</modulefile>
<modulefile>mpm_common.xml</modulefile>
<modulefile>mpm_winnt.xml</modulefile>
<modulefile>prefork.xml</modulefile>
</modulelist>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!DOCTYPE directiveindex [
<!ENTITY allmodules SYSTEM "allmodules.xml">
]>
<?xml-stylesheet type="text/xsl" href="../style/manual.xsl"?>
<directiveindex>
<title>Directive Index</title>
<summary>
<p>Each Apache directive available in the standard Apache
distribution is listed here. They are described using a
consistent format, and there is <a href="directive-dict.html"
rel="Glossary">a dictionary</a> of the terms used in their
descriptions available.</p>
</summary>
&allmodules;
</directiveindex>

View File

@@ -9,6 +9,30 @@
<xsl:output method="html" encoding="iso-8859-1" indent="no"/>
<xsl:template match="directiveindex">
<html>
<head><title><xsl:value-of select="title"/> - Apache HTTP Server</title>
<link rel="stylesheet" type="text/css" href="../style/manual.css" />
</head>
<body>
<blockquote>
<div align="center">
<img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" />
<h3>Apache HTTP Server Version 2.0</h3>
</div>
<h1 align="center"><xsl:value-of select="title"/></h1>
<xsl:apply-templates select="summary" />
<ul>
<xsl:for-each select="document(modulelist/modulefile)/modulesynopsis/directivesynopsis">
<xsl:sort select="name"/>
<li><a href="{/modulesynopsis/name}.html#{name}"><xsl:value-of select="name"/></a></li>
</xsl:for-each>
</ul>
</blockquote>
</body>
</html>
</xsl:template>
<!-- Process an entire document into an HTML page -->
<xsl:template match="modulesynopsis">
<html>