summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-17 02:18:50 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-17 02:18:50 -0700
commitaa319b93e910736eacb4a492a3128661a76f52b1 (patch)
tree3635e53449dfd36f8c976d5468db98e3aa301976
parent984c6011ba642afb3c1e16d79135e830eba13aaa (diff)
downloadnasm-aa319b93e910736eacb4a492a3128661a76f52b1.tar.gz
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>
-rw-r--r--doc/nasmdoc.css12
-rw-r--r--doc/rdsrc.pl3
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/nasmdoc.css b/doc/nasmdoc.css
index 466ee2ce..af095273 100644
--- a/doc/nasmdoc.css
+++ b/doc/nasmdoc.css
@@ -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";
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index 78e53951..bc066584 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -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 {