Skip to content

Commit ec4e412

Browse files
author
H. Peter Anvin
committed
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.
1 parent 8917088 commit ec4e412

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

doc/nasmdoc.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,21 @@ li.toc2 {
7373
display: none;
7474
}
7575
}
76-
@media print {
76+
@media only print {
7777
a {
7878
color: inherit;
7979
}
80+
ul.navbar div.title {
81+
display: none !important;
82+
}
83+
div.index {
84+
-webkit-column-gap: 2em;
85+
-moz-column-gap: 2em;
86+
column-gap: 2em;
87+
-webkit-column-count: 2;
88+
-moz-column-count: 2;
89+
column-count: 2;
90+
}
8091
}
8192
@media only screen {
8293
div.contents {

doc/rdsrc.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ sub html_preamble {
992992
print "<body>\n";
993993

994994
# Navigation bar
995+
print "<div class=\"header\">\n";
995996
print "<ul class=\"navbar\">\n";
996997
if (defined($html_nav_last)) {
997998
my $lastf = html_filename($html_nav_last);
@@ -1009,7 +1010,8 @@ sub html_preamble {
10091010
print "<h1>", $metadata{'title'}, "</h1>\n";
10101011
print '<span class="subtitle">', $metadata{'subtitle'}, "</span>\n";
10111012
print "</div>\n";
1012-
print "<div class=\"contents\"\n>\n";
1013+
print "</div>\n";
1014+
print "<div class=\"contents\">\n";
10131015
}
10141016

10151017
sub html_postamble {

0 commit comments

Comments
 (0)