mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
update ui output path and add b2 support
This commit is contained in:
57
doc/Jamfile.v2
Normal file
57
doc/Jamfile.v2
Normal file
@ -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 : <generating-rule>@delayed-glob ;
|
||||||
|
install install
|
||||||
|
: files-to-install
|
||||||
|
: <location>html
|
||||||
|
<install-source-root>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 <current-project>/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 ;
|
@ -2,5 +2,8 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
npm ci
|
npm ci
|
||||||
npx antora unordered-playbook.yml
|
npx antora unordered-playbook.yml
|
||||||
|
8
doc/index.html
Normal file
8
doc/index.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<script>location="unordered/intro.html"</script>
|
||||||
|
<meta http-equiv="refresh" content="0; url=unordered/intro.html">
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<title>Redirect Notice</title>
|
||||||
|
<h1>Redirect Notice</h1>
|
||||||
|
<p>The page you requested has been relocated to <a href="unordered/intro.html">unordered/intro.html</a>.</p>
|
@ -6,7 +6,10 @@ content:
|
|||||||
- url: ..
|
- url: ..
|
||||||
start_path: doc
|
start_path: doc
|
||||||
branches: HEAD
|
branches: HEAD
|
||||||
|
output:
|
||||||
|
dir: html
|
||||||
ui:
|
ui:
|
||||||
bundle:
|
bundle:
|
||||||
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
|
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
|
||||||
snapshot: true
|
snapshot: true
|
||||||
|
output_dir: unordered/_
|
||||||
|
Reference in New Issue
Block a user