From ad042e29a399d2c28595d581711eea9645b4c69d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Feb 2016 08:55:08 +0200 Subject: Add TOC to intro --- doc/intro-prologue.xhtml | 5 +++++ doc/intro.cli | 10 +++++----- doc/intro.html2ps | 2 +- doc/toc.css | 1 + 4 files changed, 12 insertions(+), 6 deletions(-) create mode 120000 doc/toc.css 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$ @@ -39,4 +40,8 @@ $./intro.css$ PostScript/Letter.

+

Table of Contents

+ +$TOC$ + 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 -- cgit v1.1