summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel James <daniel@calamity.org.uk>2009-02-15 19:31:37 +0000
committerDaniel James <daniel@calamity.org.uk>2009-02-15 19:31:37 +0000
commit975670b17f9335af8a133cd041f60e6c878bf911 (patch)
tree425f729b7cf2f7e6f429cac76084407a3bfd15fc
parent6b3b24b162dabadae361dea83cede49c447fe30c (diff)
downloadboost-975670b17f9335af8a133cd041f60e6c878bf911.tar.gz
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]
-rw-r--r--doc/test/Jamfile.v21
-rw-r--r--doc/test/test.qbk9
m---------tools/boostbook0
3 files changed, 10 insertions, 0 deletions
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:
#======================================================================
<format>pdf:<xsl:param>img.src.path=$(images_location)/
+ <xsl:param>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
-Subproject 82858e99f6c0d4399e93f7b8ba8f019ced599e0
+Subproject 2423ae5950004025de315ca46f7acc51c91ea36