[nasm:master] doc: add a few tags to the html output format

nasm-bot for H. Peter Anvin hpa at zytor.com
Wed Oct 11 10:42:09 PDT 2023


Commit-ID:  ec4e4126e3ca8dc174fb7d965fe62d880fecf96a
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=ec4e4126e3ca8dc174fb7d965fe62d880fecf96a
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 11 Oct 2023 10:38:18 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 11 Oct 2023 10:38:18 -0700

doc: add a few tags to the html output format

It may be possible to generate the printed documentation from the
HTML, with a suitable combination of print-only CSS. Definitely not
there yet, though.


---
 doc/nasmdoc.css | 13 ++++++++++++-
 doc/rdsrc.pl    |  4 +++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/doc/nasmdoc.css b/doc/nasmdoc.css
index 49dc3a40..e2aba555 100644
--- a/doc/nasmdoc.css
+++ b/doc/nasmdoc.css
@@ -73,10 +73,21 @@ li.toc2 {
 	display: none;
     }
 }
- at media print {
+ at media only print {
     a {
 	color: inherit;
     }
+    ul.navbar div.title {
+	display: none !important;
+    }
+    div.index {
+	-webkit-column-gap: 2em;
+	-moz-column-gap: 2em;
+	column-gap: 2em;
+	-webkit-column-count: 2;
+	-moz-column-count: 2;
+	column-count: 2;
+    }
 }
 @media only screen {
     div.contents {
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index 1fc99f61..037ac183 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -992,6 +992,7 @@ sub html_preamble {
     print "<body>\n";
 
     # Navigation bar
+    print "<div class=\"header\">\n";
     print "<ul class=\"navbar\">\n";
     if (defined($html_nav_last)) {
 	my $lastf = html_filename($html_nav_last);
@@ -1009,7 +1010,8 @@ sub html_preamble {
     print "<h1>", $metadata{'title'}, "</h1>\n";
     print '<span class="subtitle">', $metadata{'subtitle'}, "</span>\n";
     print "</div>\n";
-    print "<div class=\"contents\"\n>\n";
+    print "</div>\n";
+    print "<div class=\"contents\">\n";
 }
 
 sub html_postamble {


More information about the Nasm-commits mailing list