aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-11 08:55:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-11 08:55:08 +0200
commitad042e29a399d2c28595d581711eea9645b4c69d (patch)
tree7e7edc1d865ed8e7d2d8b9fe9ff82c5acf7a24ab /doc
parenteb11bd7693062cfa9f629877c6926ff9773d39ca (diff)
Add TOC to intro
Diffstat (limited to 'doc')
-rw-r--r--doc/intro-prologue.xhtml5
-rw-r--r--doc/intro.cli10
-rw-r--r--doc/intro.html2ps2
l---------doc/toc.css1
4 files changed, 12 insertions, 6 deletions
diff --git a/doc/intro-prologue.xhtml b/doc/intro-prologue.xhtml
index c99c919..952f724 100644
--- a/doc/intro-prologue.xhtml
+++ b/doc/intro-prologue.xhtml
@@ -11,6 +11,7 @@
$./common.css$
$./pre-box.css$
$./code-box.css$
+$./toc.css$
$./intro.css$
</style>
@@ -39,4 +40,8 @@ $./intro.css$
<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 bf251bf..5224e0d 100644
--- a/doc/intro.cli
+++ b/doc/intro.cli
@@ -26,7 +26,7 @@
//
"
-\h|TL;DR|
+\h#tldr|TL;DR|
\
$ bpkg create -d hello cxx
@@ -61,7 +61,7 @@ updated hello 1.0.0
"
"
-\h|Warning|
+\h#warning|Warning|
The \c{build2} toolchain \c{0.x.y} series are alpha releases. Interfaces
\i{will} change in backwards-incompatible ways, guaranteed. Currently, it is
@@ -92,7 +92,7 @@ especially in the build system. The most notable ones are:
"
"
-\h|Introduction|
+\h#intro|Introduction|
The \c{build2} toolchain is a set of tools designed for building and packaging
C++ code (though, if it can handle C++ it can handle anything, right?). The
@@ -663,7 +663,7 @@ info: while applying rule alias to update dir{./}
\
No magic but we got a hint: looks like we need to tell \c{build2} where
-\c{libhello} using \c{config.import.libhello}. Without fretting too much
+\c{libhello} is using \c{config.import.libhello}. Without fretting too much
about what exactly \c{out_root} means, let's point \c{build2} to our \c{bpkg}
configuration and see what happens. After all, that's where, more or less,
our \i{out} for \c{libhello} is.
@@ -973,6 +973,6 @@ Hello, Windows!
"
"
-\h|Installation|
+\h#install|Installation|
"
source "../INSTALL.cli";
diff --git a/doc/intro.html2ps b/doc/intro.html2ps
index cb3c458..1a3b352 100644
--- a/doc/intro.html2ps
+++ b/doc/intro.html2ps
@@ -1,6 +1,6 @@
@html2ps {
option {
- /*toc: hb;*/
+ toc: hb;
colour: 1;
hyphenate: 1;
titlepage: 1;
diff --git a/doc/toc.css b/doc/toc.css
new file mode 120000
index 0000000..477b331
--- /dev/null
+++ b/doc/toc.css
@@ -0,0 +1 @@
+style/toc.css \ No newline at end of file