diff --git a/doc/Jamfile b/doc/Jamfile index 69432c43..de957e6f 100644 --- a/doc/Jamfile +++ b/doc/Jamfile @@ -6,6 +6,7 @@ import sequence ; # All paths must be absolute to work well with the Doxygen rules. path-constant this_dir : . ; +path-constant target_dir : html ; path-constant redis_root_dir : .. ; path-constant include_dir : ../include ; path-constant examples_dir : ../examples ; @@ -20,7 +21,8 @@ local examples = [ path.glob-tree $(examples_dir) : *.hpp *.cpp ] ; # which is not correct. local stylesheet_arg = [ sequence.join "\"$(stylesheet_files)\"" : " " ] ; -doxygen autodoc.html +# The doxygen rule requires the target name to end in .html to generate HTML files +doxygen doc.html : $(includes) $(examples) $(readme) : @@ -59,11 +61,27 @@ doxygen autodoc.html DIRECTORY_GRAPH=NO ; +explicit doc.html ; + +# The doxygen rule only informs b2 about the main HTML file, and not about +# all the doc directory that gets generated. Using the install rule copies +# only a single file, which is incorrect. This is a workaround to copy +# the generated docs to the doc/html directory, where they should be. +make copyhtml.tag : doc.html : @copy_html_dir ; +explicit copyhtml.tag ; +actions copy_html_dir +{ + rm -rf $(target_dir) + mkdir -p $(target_dir) + cp -r $(<:D)/html/doc/* $(target_dir)/ + echo "Stamped" > "$(<)" +} + # These are used to inform the build system of the # means to build the integrated and stand-alone docs. alias boostdoc ; explicit boostdoc ; -alias boostrelease : autodoc.html ; +alias boostrelease : copyhtml.tag ; explicit boostrelease ; diff --git a/index.html b/index.html new file mode 100644 index 00000000..a75e6454 --- /dev/null +++ b/index.html @@ -0,0 +1,24 @@ + + + + Boost.Redis + + + + + Automatic redirection failed, please go to + ./doc/html/index.html +
+ + Boost.Redis
+
+ Copyright (C) 2023 Marcelo Zimbres
+
+ Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt)
+
+
+ + + \ No newline at end of file