doc: add the version number to the HTML output

Add the subtitle (e.g. "version XXXX...") to the HTML output.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-04-17 02:18:50 -07:00
parent 984c6011ba
commit aa319b93e9
2 changed files with 14 additions and 1 deletions

View File

@ -3,8 +3,18 @@ body {
"arial", "sans-serif";
background: white;
}
h1 {
div.title {
text-align: center;
font-weight: bold;
margin: 0.67em 0;
}
h1 {
font-size: 2em;
margin: 0;
}
span.subtitle {
font-size: 1.25em;
font-style: italic;
}
code, pre {
font-family: "source code pro", "liberation mono", "monospace";

View File

@ -967,7 +967,10 @@ sub html_preamble {
print "<li class=\"last\"><a class=\"index\" href=\"nasmdoci.html\">Index</a></li>\n";
print "</ul>\n";
print "<div class=\"title\">\n";
print "<h1>", $metadata{'title'}, "</h1>\n";
print '<span class="subtitle">', $metadata{'subtitle'}, "</span>\n";
print "</div>\n";
}
sub html_postamble {