validator/htdocs/config validator.conf,1.13,1.14

Update of /sources/public/validator/htdocs/config
In directory hutz:/tmp/cvs-serv22292/htdocs/config

Modified Files:
	validator.conf 
Log Message:
More config cleanup. Provide SetEnv for base path, and check all paths for
existance and readability (-d and -r). This closes Bug #863.


Index: validator.conf
===================================================================
RCS file: /sources/public/validator/htdocs/config/validator.conf,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- validator.conf	3 Sep 2004 01:26:33 -0000	1.13
+++ validator.conf	4 Sep 2004 21:06:16 -0000	1.14
@@ -8,19 +8,54 @@
 #
 
 #
+# Base Path for Markup Validator files.
+#
+# You MUST set these unless you use the default locations for the files.
+# e.g. the config files in "/etc/w3c/" and everything else in
+# "/usr/local/validator/".
+#
+
+<Paths>
+  #
+  # Base path... (defaults to "/usr/local/validator").
+  #Base = /usr/local/validator
+
+  #
+  # Location of template files
+  Templates = $Base/share/templates/en_US
+
+  <SGML>
+    #
+    # The SGML Library Path.
+    Library = $Base/htdocs/sgml-lib
+
+    #
+    # The SGML Parser to use.  Defaults to /usr/bin/onsgmls.
+    Parser = /usr/bin/onsgmls
+  </SGML>
+</Paths>
+
+#
 # This controls whether the debugging options are allowed to be enabled. 
 Allow Debug = yes
 
 #
 # This lets you permanently enable the debugging options. Can be overridden
 # with CGI options (unlike "Allow Debug" above).
-Enable Debug  = no
+Enable Debug = no
 
 #
 # Whether private RFC1918 addresses are allowed.
 Allow Private IPs = no
 
 #
+# Protocols the validator is allowed to use for retrieving documents.
+# The default is to allow http and https.
+<Protocols>
+  Allow = data,http,https
+</Protocols>
+
+#
 # Email address of the maintainer of this service.
 Maintainer = www-validator@w3.org
 
@@ -32,29 +67,27 @@
 # Base URI for the Element Reference.
 Element Ref URI = http://www.htmlhelp.com/reference/html40/
 
-#
-# The SGML Library Path.
-SGML Library = /home/link/Work/w3.org/validator-HEAD/htdocs/sgml-lib
-
-#
-# The SGML Parser to use.  Defaults to /usr/bin/onsgmls.
-SGML Parser = /usr/bin/onsgmls
 
-#
-# Location of template files
-Template Path = /home/link/Work/w3.org/validator-HEAD/share/templates/en_US
 
 #
 # Mapping tables etc...
+#
 
+#
+# Maps element names to URLs (cf. "Element Ref URI" above).
 <Elements>
   Include eref.cfg
 </Elements>
 
+#
+# Main document Type Registry; contains all information on the types
+# of documents we support and how they are processed.
 <Types>
   Include types.conf
 </Types>
 
+#
+# Mapping of charset names to their IANA names and how iconv(3) knows them.
 <Charsets>
   Include charset.cfg
 </Charsets>
@@ -65,17 +98,9 @@
   Include type.cfg
 </Types>
 
-
 #
 # Source for the "Tip of The Day" blurbs.
 <Tips>
   Include tips.cfg
 </Tips>
 
-
-#
-# Protocols the validator is allowed to use for retrieving documents.
-# The default is to allow http and https.
-<Protocols>
-  Allow = data,http,https
-</Protocols>

Received on Saturday, 4 September 2004 21:06:19 UTC