From 067acd6b49b94d4f1cba238d5530fbebeded1bf2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Jan 2016 14:19:37 +0200 Subject: Update intro styling --- doc/cli.sh | 31 ++++++++++++++++++++++++ doc/code-box.css | 1 + doc/common.css | 1 + doc/intro-epilogue.xhtml | 4 ++++ doc/intro-prologue.xhtml | 38 ++++++++++++++++++++++++++++++ doc/intro.cli | 24 +++++++++++++++++-- doc/intro.css | 1 + doc/intro.html2ps | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ doc/pre-box.css | 1 + doc/style | 2 +- 10 files changed, 161 insertions(+), 3 deletions(-) create mode 100755 doc/cli.sh create mode 120000 doc/code-box.css create mode 120000 doc/common.css create mode 100644 doc/intro-epilogue.xhtml create mode 100644 doc/intro-prologue.xhtml create mode 120000 doc/intro.css create mode 100644 doc/intro.html2ps create mode 120000 doc/pre-box.css diff --git a/doc/cli.sh b/doc/cli.sh new file mode 100755 index 0000000..c315efa --- /dev/null +++ b/doc/cli.sh @@ -0,0 +1,31 @@ +#! /usr/bin/env bash + +version="0.2" # 0.2.0 +date="January 2016" + +trap 'exit 1' ERR +set -o errtrace # Trap in functions. + +function info () { echo "$*" 1>&2; } +function error () { info "$*"; exit 1; } + +while [ $# -gt 0 ]; do + case $1 in + --clean) + rm -f build2-toolchain-intro.xhtml build2-toolchain-intro.ps \ +build2-toolchain-intro.pdf + exit 0 + ;; + *) + error "unexpected $1" + ;; + esac +done + +cli -I .. -v version="$version" -v date="$date" --generate-html \ +--html-prologue-file intro-prologue.xhtml \ +--html-epilogue-file intro-epilogue.xhtml \ +--html-suffix .xhtml --output-prefix build2-toolchain- intro.cli + +#html2ps -f intro.html2ps -o build2-toolchain-intro.ps build2-toolchain-intro.xhtml +#ps2pdf14 build2-toolchain-intro.ps build2-toolchain-intro.pdf diff --git a/doc/code-box.css b/doc/code-box.css new file mode 120000 index 0000000..e442993 --- /dev/null +++ b/doc/code-box.css @@ -0,0 +1 @@ +style/code-box.css \ No newline at end of file diff --git a/doc/common.css b/doc/common.css new file mode 120000 index 0000000..3ddf6fc --- /dev/null +++ b/doc/common.css @@ -0,0 +1 @@ +style/common.css \ No newline at end of file diff --git a/doc/intro-epilogue.xhtml b/doc/intro-epilogue.xhtml new file mode 100644 index 0000000..aa5a7c3 --- /dev/null +++ b/doc/intro-epilogue.xhtml @@ -0,0 +1,4 @@ + + + + diff --git a/doc/intro-prologue.xhtml b/doc/intro-prologue.xhtml new file mode 100644 index 0000000..a6362cf --- /dev/null +++ b/doc/intro-prologue.xhtml @@ -0,0 +1,38 @@ + + + + + + + + The build2 Toolchain Introduction + + + + + +
+ +
+ +
+
The build2 Toolchain Introduction
+ +

Copyright © 2014-2016 Code + Synthesis Ltd
+ Permission is granted to copy, distribute and/or modify this document + under the terms of the MIT License.

+ +

Revision $version$, $date$
+ This revision of the document describes the build2 + toolchain $version$.x series and is available in the following + formats: XHTML, PDF, + and PostScript.

+
+ +
diff --git a/doc/intro.cli b/doc/intro.cli index dce9fc4..6e27b72 100644 --- a/doc/intro.cli +++ b/doc/intro.cli @@ -14,8 +14,6 @@ // // STYLE // -// @@ letter spacing -// @@ links in have underline in spaces. // @@ section boundary page breaks (
) // @@ when printed, code background is gone, but spaces still there @@ -24,6 +22,28 @@ // - Maximum
 line is 70 characters.
 //
 
+/*
+
+$ mkdir hello-mingw32
+$ cd hello-mingw32
+$ bpkg create cxx config.cxx=i686-w64-mingw32-g++ config.bin.ar=i686-w64-mingw32-ar config.bin.lib=static config.cxx.loptions=-static
+bpkg create -d . --wipe cxx config.cxx=x86_64-w64-mingw32-g++ config.bin.ar=x86_64-w64-mingw32-ar config.bin.lib=static config.cxx.loptions=-static
+created new configuration in /tmp/hello-mingw32/
+
+$ bpkg add https://build2.org/pkg/1/hello/stable
+added repository build2.org/hello/stable
+
+$ bpkg fetch
+fetching build2.org/hello/stable
+2 package(s) in 1 repository(s)
+
+$ bpkg build -y hello
+
+$ wine hello-1.0.0/hello.exe Windows
+Hello, Windows!
+
+*/
+
 "
 \h|TL;DR|
 
diff --git a/doc/intro.css b/doc/intro.css
new file mode 120000
index 0000000..71895c7
--- /dev/null
+++ b/doc/intro.css
@@ -0,0 +1 @@
+style/intro.css
\ No newline at end of file
diff --git a/doc/intro.html2ps b/doc/intro.html2ps
new file mode 100644
index 0000000..051e384
--- /dev/null
+++ b/doc/intro.html2ps
@@ -0,0 +1,61 @@
+@html2ps {
+  option {
+    toc: hb;
+    colour: 1;
+    hyphenate: 1;
+    titlepage: 1;
+  }
+
+  datefmt: "%B %Y";
+
+  titlepage {
+    content: "
+
+

The build2 Toolchain Introduction

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+
+

Copyright © 2014-2016 Code Synthesis Ltd
+ Permission is granted to copy, distribute and/or modify this document under + the terms of the MIT License.

+ +

Revision $[version], $D
+ This revision of the document describes the build2 toolchain + $[version].x series.

"; + } + + 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; +} + +pre { + font-size: 10pt; +} diff --git a/doc/pre-box.css b/doc/pre-box.css new file mode 120000 index 0000000..b9ec76c --- /dev/null +++ b/doc/pre-box.css @@ -0,0 +1 @@ +style/pre-box.css \ No newline at end of file diff --git a/doc/style b/doc/style index 9510963..fe9e712 160000 --- a/doc/style +++ b/doc/style @@ -1 +1 @@ -Subproject commit 9510963c900770f86f80b98f07deb8242448b117 +Subproject commit fe9e7121d07c5a134559f02d5dc46cceb3f276c1 -- cgit v1.1