]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add CSS prettiness to cfgman pages.
authoramosjeffries <>
Thu, 23 Aug 2007 04:28:34 +0000 (04:28 +0000)
committeramosjeffries <>
Thu, 23 Aug 2007 04:28:34 +0000 (04:28 +0000)
 - only effects view when online, default is as before.

scripts/www/build-cfg-help.pl
scripts/www/template.html
scripts/www/template_single.html

index 94c0916456ba91ba1fb015f1de39104d30932840..7871ac29233a12f065cd7dd32c215c43cce7db7d 100755 (executable)
@@ -10,7 +10,7 @@ use File::Basename;
 #
 # Adrian Chadd <adrian@squid-cache.org>
 #
-# $Id: build-cfg-help.pl,v 1.4 2007/08/02 22:44:39 amosjeffries Exp $
+# $Id: build-cfg-help.pl,v 1.5 2007/08/22 22:28:34 amosjeffries Exp $
 
 #
 # The template file is reasonably simple to parse. There's a number of
@@ -185,10 +185,12 @@ print $index <<EOF
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>Squid $version configuration file</title>
     <meta name="keywords" content="squid squid.conf config configure" />
     <meta name="description" content="Squid $version" />
+    <link rel="stylesheet" type="text/csc" href="http://www.squid-cache.org/default.css" />
+    <link rel="stylesheet" type="text/csc" href="http://www.squid-cache.org/cfgman.css" />
 </head>
 <body>
 EOF
@@ -316,10 +318,12 @@ if ($format eq "splithtml") {
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>Squid $version configuration file</title>
     <meta name="keywords" content="squid squid.conf config configure" />
     <meta name="description" content="Squid $version" />
+    <link rel="stylesheet" type="text/csc" href="http://www.squid-cache.org/default.css" />
+    <link rel="stylesheet" type="text/csc" href="http://www.squid-cache.org/cfgman.css" />
 </head>
 <body>
     <div id="header">
index 08ac4e09e9efcf51b9a716e2925f3ec0f6da30bd..713c52e55847a8d7a954009c2541653f96ff34d2 100644 (file)
@@ -5,38 +5,40 @@
     <title>Squid %version% Configuration File: %title%</title>
     <meta name="keywords" content="squid squid.conf config configure %name%" />
     <meta name="description" content="Squid %version%  %name% " />
+    <link rel="stylesheet" type="text/css" href="http://www.squid-cache.org/default.css" />
+    <link rel="stylesheet" type="text/css" href="http://www.squid-cache.org/cfgman.css" />
 </head>
 
 <body>
 
-  <p>
+  <p class="cfglinks">
   |&nbsp;<a href="%toc_link%">Index</a>&nbsp;
   |&nbsp;<a href="%alpha_link%">Alphabetical Index</a>&nbsp;|
   </p>
 
-  <table summary="%name%">
+  <table class="summary" summary="%name%">
     <tr>
-      <th>Option Name:</th><td><a name="%name%">%name%</a></td>
+      <th>Option Name:</th><td id="name"><a name="%name%">%name%</a></td>
     </tr>
     <tr>
-      <th>Also Known As:</th><td>%aliaslist%</td>
+      <th>Also Known As:</th><td id="alias">%aliaslist%</td>
     </tr>
     <tr>
-      <th>Requires:</th><td>%ifdef%</td>
+      <th>Requires:</th><td id="requires">%ifdef%</td>
     </tr>
     <tr>
-      <th>Default Value:</th><td>%default%</td>
+      <th>Default Value:</th><td id="default">%default%</td>
     </tr>
     <tr>
       <th>Suggested Config:</th>
-      <td>
+      <td id="config">
         <pre>
 %config%
         </pre>
       </td>
     </tr>
     <tr>
-      <td colspan="2">
+      <td id="detail" colspan="2">
         <pre>
 %ldoc%
         </pre>
@@ -45,7 +47,7 @@
     <tr class="spacer"><td>&nbsp;</td></tr>
   </table>
 
-  <p>
+  <p class="cfglinks">
   |&nbsp;<a href="%toc_link%">Index</a>&nbsp;
   |&nbsp;<a href="%alpha_link%">Alphabetical Index</a>&nbsp;|
   </p>
index 8aa05d2cf54dbb05f71241c1508cc8fd9285fd08..178006a431803c039f06e647a5f98a9e783368d3 100644 (file)
@@ -1,28 +1,28 @@
 
   <h2>Option: <a href="%toc_link%" name="%name%">%name%</a></h2>
-  <table summary="%name%">
+  <table class="summary" summary="%name%">
     <tr>
-      <th>Option Name:</th><td><a name="%name%">%name%</a></td>
+      <th>Option Name:</th><td id="name"><a name="%name%">%name%</a></td>
     </tr>
     <tr>
-      <th>Also Known As:</th><td>%aliaslist%</td>
+      <th>Also Known As:</th><td id="alias">%aliaslist%</td>
     </tr>
     <tr>
-      <th>Compile Requires:</th><td>%ifdef%</td>
+      <th>Compile Requires:</th><td id="requires">%ifdef%</td>
     </tr>
     <tr>
-      <th>Default Value:</th><td>%default%</td>
+      <th>Default Value:</th><td id="default">%default%</td>
     </tr>
     <tr>
       <th>Suggested Config:</th>
-      <td>
+      <td id="config">
         <pre>
 %config%
         </pre>
       </td>
     </tr>
     <tr>
-      <td colspan="2">
+      <td id="detail" colspan="2">
         <pre>
 %ldoc%
         </pre>