From 975670b17f9335af8a133cd041f60e6c878bf911 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 15 Feb 2009 19:31:37 +0000 Subject: [PATCH] Implement the 'boost:' for links relative to boost root. Also, optionally replace links within the boost distribution with links to the the boost site, which is useful for generating pdfs and standalone documentation. Implemented with John Maddock. Fixes #1166. [SVN r51261] --- doc/test/Jamfile.v2 | 1 + doc/test/test.qbk | 9 +++++++++ tools/boostbook | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/test/Jamfile.v2 b/doc/test/Jamfile.v2 index aa8709a1d5..35a21dab56 100644 --- a/doc/test/Jamfile.v2 +++ b/doc/test/Jamfile.v2 @@ -164,6 +164,7 @@ boostbook standalone # PDF Options: #====================================================================== pdf:img.src.path=$(images_location)/ + boost.url.prefix=http://www.boost.org/doc/libs/release/doc/test/html ; diff --git a/doc/test/test.qbk b/doc/test/test.qbk index 2181aed2e5..d4bd667572 100644 --- a/doc/test/test.qbk +++ b/doc/test/test.qbk @@ -375,6 +375,15 @@ The code should be syntax highlighted. Try this: [@http://www.boost.org this is [*boost's] website....] it should be visible as a link. +This is [@../../../boost/math/distributions.hpp a link to a header file (boost/math/distributions.hpp)], +it should be rewritable and point to the website when built as a PDF. + +This is [@boost:libs/regex/index.html a link to another library's documentation (Boost.Regex)], using the boost: protocol, +it should be rewritten to point to the website when building a PDF. + +This is [@boost:/libs/regex/index.html a link to another library's documentation (Boost.Regex)], using the boost:/ protocol, +it should be rewritten to point to the website when building a PDF. + [endsect] [section Footnotes] diff --git a/tools/boostbook b/tools/boostbook index 82858e99f6..2423ae5950 160000 --- a/tools/boostbook +++ b/tools/boostbook @@ -1 +1 @@ -Subproject commit 82858e99f6c0d4399e93f7b8ba8f019ced599e07 +Subproject commit 2423ae5950004025de315ca46f7acc51c91ea366