diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index b4f667f..6b8a592 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -12,6 +12,7 @@ using doxygen ; import boostbook ; import regex ; import os ; +import path ; doxygen_files = additive_combine @@ -44,10 +45,16 @@ doxygen_files = xor_combine ; -# temporary hack for local docs -local BOOST_ROOT = ../../../.. ; - path-constant here : . ; +path-constant boost-root : ../../.. ; + +# Figure out where the root of the boost tree is relative +# to the html directory. +local BOOST_ROOT = [ path.relative-to + [ path.join [ path.pwd ] html ] + [ path.root + [ path.make $(boost-root) ] + [ path.pwd ] ] ] ; doxygen reference : $(here)/../../../boost/random/$(doxygen_files).hpp @@ -60,6 +67,7 @@ doxygen reference : endxmlnote=\"@xmlonly @endxmlonly\" \\ blockquote=\"@xmlonly
@endxmlonly\" \\ + boost=\"$(BOOST_ROOT)\" \\ random_distribution=\"@xmlonly random distribution @endxmlonly\" \\ pseudo_random_number_generator=\"@xmlonly pseudo-random number generator @endxmlonly\" \\ uniform_random_number_generator=\"@xmlonly uniform random number generator @endxmlonly\" \\ diff --git a/doc/random.qbk b/doc/random.qbk index 0f9fcb7..862012c 100644 --- a/doc/random.qbk +++ b/doc/random.qbk @@ -84,7 +84,7 @@ random numbers having useful properties, such as uniform distribution. You should read the [concepts concepts documentation] for an introduction and the definition of the basic concepts. For a quick start, it may be sufficient -to have a look at [@boost:/libs/random/random_demo.cpp random_demo.cpp]. +to have a look at [@boost:/libs/random/example/random_demo.cpp random_demo.cpp]. For a very quick start, here's an example: diff --git a/include/boost/nondet_random.hpp b/include/boost/nondet_random.hpp index 959103b..12e1828 100644 --- a/include/boost/nondet_random.hpp +++ b/include/boost/nondet_random.hpp @@ -70,7 +70,7 @@ namespace boost { * * Performance * - * The test program + * The test program * nondet_random_speed.cpp measures the execution times of the * nondet_random.hpp implementation of the above algorithms in a tight * loop. The performance has been evaluated on a Pentium Pro 200 MHz@endxmlonly\" \\ endblockquote=\"@xmlonly