]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated css for better html output.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 14 Jan 2012 11:32:40 +0000 (12:32 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 14 Jan 2012 11:32:40 +0000 (12:32 +0100)
doc/alert-printlist.c
doc/scripts/gdoc
doc/scripts/split-texi.pl
doc/texinfo.css

index 4d7ad38de45af89235117e3e27fc06586461bf8f..fb6aef47688128b227b85e1e2cb1b24185fe0088 100644 (file)
@@ -50,9 +50,8 @@ static void main_texinfo (void)
     gnutls_mac_algorithm_t mac;
     gnutls_protocol_t version;
 
-    printf ("Available alert messages:\n");
-    
     printf ("@multitable @columnfractions .55 .10 .30\n@anchor{tab:alerts}\n");
+    printf ("@headitem Alert @tab ID @tab Description\n");
     for (i = 0; i<256;i++)
       {
         if (gnutls_alert_get_strname(i)==NULL) continue;
index 307888c986cc961b83e91c4315d385538fc1b7e6..f93342d4933f10e864d4ece1ca5c9ab73f0448a1 100755 (executable)
@@ -377,7 +377,7 @@ sub output_enum_texinfo {
     my $type;
 
     print "\n\@c $name\n";
-    print "\@itemize\n";
+    print "\@table \@code\n";
 
     $check=0;
     foreach $parameter (@{$args{'parameterlist'}}) {
@@ -393,7 +393,7 @@ sub output_enum_texinfo {
        chomp $out;
        print $out . "\n";
     }
-    print "\@end itemize\n";
+    print "\@end table\n";
 }
 
 # output in html
index b4b0087d5f71e155dffc4bc8ec7169cceb99aafd..325afaffb411c59c89ecbc61b4ee60f5247a0463 100755 (executable)
@@ -30,7 +30,7 @@ sub key_of_record {
 }
 
 if ($enum == 1) {
-  $/="\@end itemize";          # Records are separated by blank lines.
+  $/="\@end table";          # Records are separated by blank lines.
 } else {
   $/="\n\\end{function}";          # Records are separated by blank lines.
 }
index 96df89ef27a2f53e6bbb590b07de7c015b37fc0e..14eb6f3571cbb240c54733a40c0f50fc6307e3c9 100644 (file)
@@ -21,16 +21,16 @@ pre {
   margin: 0 5%;
   padding: 0.5em;
 }
-pre.example {
-  border: solid 1px;
-  background: #eeeeff;
-  padding-bottom: 1em;
-}
-pre.verbatim {
-  border: solid 1px gray;
-  background: white;
+pre.example,pre.verbatim {
   padding-bottom: 1em;
+
+  border: solid #c2e0ff;
+  background: #f0faff;
+  border-width: 1px 1px 1px 5px;
+  margin: 1em auto;
+  width: 90%;
 }
+
 div.node {
   margin: 0 -5% 0 -2%;
   padding: 0.5em 0.5em;
@@ -42,3 +42,52 @@ dd, li {
   padding-top: 0.1em;
   padding-bottom: 0.1em;
 }
+div.float {
+
+  margin-bottom: 0.5em;
+  text-align: center;
+}
+
+table {
+  text-align: left;
+  margin-left:auto;
+  margin-right:auto;
+  width: 50%;
+}
+
+th {
+  padding: 0;
+  color: #336699;
+  background-color: #c2e0ff;
+  border: solid #000000;
+  border-width: 0px;
+  margin: 1em auto;
+  text-align: center;
+  margin-left:auto;
+  margin-right:auto;
+}
+
+td {
+  padding: 0;
+  border: solid #000000;
+  background-color: #f0faff;
+  border-width: 0px;
+  margin: 1em auto;
+  text-align: left;
+  margin-left:auto;
+  margin-right:auto;
+  padding-left: 1em;
+}
+
+dl {
+  text-align: left;
+  margin-left:auto;
+  margin-right:auto;
+  width: 50%;
+
+  padding-left: 1em;
+  border: solid #c2e0ff;
+  background: #f0faff;
+  border-width: 1px 1px 1px 5px;
+  margin: 1em auto;
+}