From 1a034bfaddd1e7ebcafd730f7bde019e6a84b00d Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 9 Jan 2025 14:30:38 -0800 Subject: [PATCH] update ui output path and add b2 support --- doc/Jamfile.v2 | 57 ++++++++++++++++++++++++++++++++++++++ doc/build_antora.sh | 3 ++ doc/index.html | 8 ++++++ doc/unordered-playbook.yml | 3 ++ 4 files changed, 71 insertions(+) create mode 100644 doc/Jamfile.v2 create mode 100644 doc/index.html diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 new file mode 100644 index 00000000..0feecab2 --- /dev/null +++ b/doc/Jamfile.v2 @@ -0,0 +1,57 @@ +import generate ; +import path ; +import property-set ; +import virtual-target ; + +path-constant HERE : . ; + +make html/index.html : build_antora.sh : @run-script ; +generate files-to-install : html/index.html : @delayed-glob ; +install install + : files-to-install + : html + html/unordered + ; +explicit html/index.html files-to-install ; + +# this runs the antora script +actions run-script +{ + bash $(>) +} + +# this globs after its sources are created +rule delayed-glob ( project name : property-set : sources * ) +{ + for local src in $(sources) + { + # the next line causes the source to be generated immediately + # and not later (which it normally would) + UPDATE_NOW [ $(src).actualize ] ; + } + + # we need to construct the path to the globbed directory; + # this path would be /antora + local root = [ path.root html [ $(project).location ] ] ; + local files ; + + # actual globbing happens here + for local file in [ path.glob-tree $(root) : * ] + { + # we have to skip directories, because our match expression accepts anything + if [ CHECK_IF_FILE $(file) ] + { + # we construct a list of targets to copy + files += [ virtual-target.from-file $(file:D=) : $(file:D) : $(project) ] ; + } + } + + # we prepend empty usage requirements to the result + return [ property-set.empty ] $(files) ; +} + +############################################################################### +alias boostdoc ; +explicit boostdoc ; +alias boostrelease : install ; +explicit boostrelease ; diff --git a/doc/build_antora.sh b/doc/build_antora.sh index 4ed646ac..5fc4a429 100755 --- a/doc/build_antora.sh +++ b/doc/build_antora.sh @@ -2,5 +2,8 @@ set -ex +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +cd "$SCRIPT_DIR" + npm ci npx antora unordered-playbook.yml diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 00000000..acbb8483 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,8 @@ + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to unordered/intro.html.

diff --git a/doc/unordered-playbook.yml b/doc/unordered-playbook.yml index d3a18a56..fa1a6831 100644 --- a/doc/unordered-playbook.yml +++ b/doc/unordered-playbook.yml @@ -6,7 +6,10 @@ content: - url: .. start_path: doc branches: HEAD +output: + dir: html ui: bundle: url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable snapshot: true + output_dir: unordered/_