summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-11 11:33:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-11 11:33:31 +0200
commit88bef7fa19d595b64944edc38696bb1ceadba2fb (patch)
treebd31a777979dbee688d9e40061f5ba3081822ebb
parent06a3934fd76a32a752062d424a6cfc98edd543ad (diff)
Add common documentation pro/epilogues, html2ps config
-rw-r--r--doc-epilogue.xhtml4
-rw-r--r--doc-prologue.xhtml49
-rw-r--r--doc.html2ps66
3 files changed, 119 insertions, 0 deletions
diff --git a/doc-epilogue.xhtml b/doc-epilogue.xhtml
new file mode 100644
index 0000000..aa5a7c3
--- /dev/null
+++ b/doc-epilogue.xhtml
@@ -0,0 +1,4 @@
+</div>
+
+</body>
+</html>
diff --git a/doc-prologue.xhtml b/doc-prologue.xhtml
new file mode 100644
index 0000000..c9e1c3c
--- /dev/null
+++ b/doc-prologue.xhtml
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta charset="UTF-8"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <meta name="version" content="$version$"/>
+ <meta name="subject" content="$subject$"/>
+ <meta name="title" content="$title$"/>
+
+ <title>The build2 $title$</title>
+
+ <style type="text/css">
+$./common.css$
+$./pre-box.css$
+$./code-box.css$
+$./toc.css$
+$./intro.css$
+ </style>
+
+</head>
+<body>
+<div id="content">
+
+ <div class="noprint"> <!-- Exclude from html2ps. -->
+
+ <div id="titlepage">
+ <div class="title">The <code>build2</code> $title$</div>
+
+ <p>Copyright &#169; 2014-2016 <a href="http://codesynthesis.com">Code
+ Synthesis Ltd</a><br/>
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the MIT License.</p>
+
+ <p id="revision">Revision <code>$version$</code>, $date$<br/>
+ This revision of the document describes the <code>build2</code>
+ $subject$ <code>$version$.x</code> series and is available in the
+ following formats:
+ <a href="$name$.xhtml">XHTML</a>,
+ <a href="$name$-a4.pdf">PDF/A4</a>,
+ <a href="$name$-letter.pdf">PDF/Letter</a>,
+ <a href="$name$-a4.ps">PostScript/A4</a>, and
+ <a href="$name$-letter.ps">PostScript/Letter</a>.</p>
+ </div>
+
+ <h1>Table of Contents</h1>
+
+$TOC$
+
+ </div> <!-- noprint -->
diff --git a/doc.html2ps b/doc.html2ps
new file mode 100644
index 0000000..41e5922
--- /dev/null
+++ b/doc.html2ps
@@ -0,0 +1,66 @@
+@html2ps {
+ option {
+ toc: hb;
+ colour: 1;
+ hyphenate: 1;
+ titlepage: 1;
+ }
+
+ datefmt: "%B %Y";
+
+ titlepage {
+ content: "
+<div align=center>
+ <h1><big>The <code>build2</code> $[title]</big></h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+ <h1>&nbsp;</h1>
+</div>
+ <p>Copyright &copy; 2014-2016 Code Synthesis Ltd<br/>
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the MIT License.</p>
+
+ <p>Revision <code>$[version]</code>, $D<br/>
+ This revision of the document describes the <code>build2</code> $[subject]
+ <code>$[version].x</code> series.</p>";
+ }
+
+ toc {
+ indent: 2em;
+ }
+
+ header {
+ odd-right: $H;
+ even-left: $H;
+ }
+
+ footer {
+ odd-left: Revision $[version], $D;
+ odd-center: $T;
+ odd-right: $N;
+
+ even-left: $N;
+ even-center: $T;
+ even-right: Revision $[version], $D;
+ }
+}
+
+body {
+ font-size: 12pt;
+ text-align: justify;
+ background: white;
+}
+
+code {
+ font-size: 9pt;
+}
+
+pre {
+ font-size: 9pt;
+}