]> granicus.if.org Git - apache/commitdiff
First crack at the automatic directive index. Now the only thing that
authorJoshua Slive <slive@apache.org>
Sat, 9 Mar 2002 22:42:54 +0000 (22:42 +0000)
committerJoshua Slive <slive@apache.org>
Sat, 9 Mar 2002 22:42:54 +0000 (22:42 +0000)
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

docs/manual/mod/allmodules.xml [new file with mode: 0644]
docs/manual/mod/directives.xml [new file with mode: 0644]
docs/manual/style/manual.xsl

diff --git a/docs/manual/mod/allmodules.xml b/docs/manual/mod/allmodules.xml
new file mode 100644 (file)
index 0000000..ddf557d
--- /dev/null
@@ -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>
\ No newline at end of file
diff --git a/docs/manual/mod/directives.xml b/docs/manual/mod/directives.xml
new file mode 100644 (file)
index 0000000..6ef8220
--- /dev/null
@@ -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>
\ No newline at end of file
index a7a5a7e5322a5df9aa9657fb7ec02c058ff1d207..ef37629b366170825315ce345fb6a0a37b5c2099 100644 (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>