diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 11:35:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 11:35:17 +0200 |
commit | 567fb182927ee8ddb984205ace082be4822e3e43 (patch) | |
tree | 6b1857d03d498fc186ec57ef39a152caf0005fea | |
parent | ad042e29a399d2c28595d581711eea9645b4c69d (diff) |
Factor intro pro/epilogues to doc/style submodule
-rwxr-xr-x | doc/cli.sh | 8 | ||||
l--------- | doc/doc-epilogue.xhtml | 1 | ||||
l--------- | doc/doc-prologue.xhtml | 1 | ||||
l--------- | doc/doc.html2ps | 1 | ||||
-rw-r--r-- | doc/intro-epilogue.xhtml | 4 | ||||
-rw-r--r-- | doc/intro-prologue.xhtml | 47 | ||||
-rw-r--r-- | doc/intro.cli | 2 | ||||
-rw-r--r-- | doc/intro.html2ps | 66 | ||||
m--------- | doc/style | 0 |
9 files changed, 9 insertions, 121 deletions
@@ -24,14 +24,14 @@ done cli -I .. -v version="$version" -v date="$date" \ --generate-html --html-suffix .xhtml \ ---html-prologue-file intro-prologue.xhtml \ ---html-epilogue-file intro-epilogue.xhtml \ +--html-prologue-file doc-prologue.xhtml \ +--html-epilogue-file doc-epilogue.xhtml \ --link-regex '%b([-.].+)%../../build2/doc/b$1%' \ --link-regex '%bpkg([-.].+)%../../bpkg/doc/bpkg$1%' \ --output-prefix build2-toolchain- intro.cli -html2ps -f intro.html2ps:a4.html2ps -o build2-toolchain-intro-a4.ps build2-toolchain-intro.xhtml +html2ps -f doc.html2ps:a4.html2ps -o build2-toolchain-intro-a4.ps build2-toolchain-intro.xhtml ps2pdf14 -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-a4.ps build2-toolchain-intro-a4.pdf -html2ps -f intro.html2ps:letter.html2ps -o build2-toolchain-intro-letter.ps build2-toolchain-intro.xhtml +html2ps -f doc.html2ps:letter.html2ps -o build2-toolchain-intro-letter.ps build2-toolchain-intro.xhtml ps2pdf14 -sPAPERSIZE=letter -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-letter.ps build2-toolchain-intro-letter.pdf diff --git a/doc/doc-epilogue.xhtml b/doc/doc-epilogue.xhtml new file mode 120000 index 0000000..5111ca2 --- /dev/null +++ b/doc/doc-epilogue.xhtml @@ -0,0 +1 @@ +style/doc-epilogue.xhtml
\ No newline at end of file diff --git a/doc/doc-prologue.xhtml b/doc/doc-prologue.xhtml new file mode 120000 index 0000000..e1fd108 --- /dev/null +++ b/doc/doc-prologue.xhtml @@ -0,0 +1 @@ +style/doc-prologue.xhtml
\ No newline at end of file diff --git a/doc/doc.html2ps b/doc/doc.html2ps new file mode 120000 index 0000000..dc19855 --- /dev/null +++ b/doc/doc.html2ps @@ -0,0 +1 @@ +style/doc.html2ps
\ No newline at end of file diff --git a/doc/intro-epilogue.xhtml b/doc/intro-epilogue.xhtml deleted file mode 100644 index aa5a7c3..0000000 --- a/doc/intro-epilogue.xhtml +++ /dev/null @@ -1,4 +0,0 @@ -</div> - -</body> -</html> diff --git a/doc/intro-prologue.xhtml b/doc/intro-prologue.xhtml deleted file mode 100644 index 952f724..0000000 --- a/doc/intro-prologue.xhtml +++ /dev/null @@ -1,47 +0,0 @@ -<!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$"/> - - <title>The build2 Toolchain Introduction</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> Toolchain Introduction</div> - - <p>Copyright © 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> - toolchain <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/intro.cli b/doc/intro.cli index 5224e0d..b9b8a28 100644 --- a/doc/intro.cli +++ b/doc/intro.cli @@ -3,6 +3,8 @@ // license : MIT; see accompanying LICENSE file "\name=build2-toolchain-intro" +"\subject=toolchain" +"\title=Toolchain Introduction" // TODO // diff --git a/doc/intro.html2ps b/doc/intro.html2ps deleted file mode 100644 index 1a3b352..0000000 --- a/doc/intro.html2ps +++ /dev/null @@ -1,66 +0,0 @@ -@html2ps { - option { - toc: hb; - colour: 1; - hyphenate: 1; - titlepage: 1; - } - - datefmt: "%B %Y"; - - titlepage { - content: " -<div align=center> - <h1><big>The <code>build2</code> Toolchain Introduction</big></h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> - <h1> </h1> -</div> - <p>Copyright © 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> toolchain - <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; -} diff --git a/doc/style b/doc/style -Subproject 06a3934fd76a32a752062d424a6cfc98edd543a +Subproject 88bef7fa19d595b64944edc38696bb1ceadba2f |