summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-01-14 12:32:40 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-01-14 12:32:40 +0100
commit3128d990f2cf142e70b97095564ee9e43f2239ff (patch)
treec3584c16d8155e1d4a4e04eb92c4363e2c1f7397
parent3548a950551354f5cb367b08632d7ea81e4a62f1 (diff)
downloadgnutls-3128d990f2cf142e70b97095564ee9e43f2239ff.tar.gz
updated css for better html output.
-rw-r--r--doc/alert-printlist.c3
-rwxr-xr-xdoc/scripts/gdoc4
-rwxr-xr-xdoc/scripts/split-texi.pl2
-rw-r--r--doc/texinfo.css65
4 files changed, 61 insertions, 13 deletions
diff --git a/doc/alert-printlist.c b/doc/alert-printlist.c
index 4d7ad38de4..fb6aef4768 100644
--- a/doc/alert-printlist.c
+++ b/doc/alert-printlist.c
@@ -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;
diff --git a/doc/scripts/gdoc b/doc/scripts/gdoc
index 307888c986..f93342d493 100755
--- a/doc/scripts/gdoc
+++ b/doc/scripts/gdoc
@@ -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
diff --git a/doc/scripts/split-texi.pl b/doc/scripts/split-texi.pl
index b4b0087d5f..325afaffb4 100755
--- a/doc/scripts/split-texi.pl
+++ b/doc/scripts/split-texi.pl
@@ -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.
}
diff --git a/doc/texinfo.css b/doc/texinfo.css
index 96df89ef27..14eb6f3571 100644
--- a/doc/texinfo.css
+++ b/doc/texinfo.css
@@ -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;
+}