mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
33 lines
996 B
Bash
Executable File
33 lines
996 B
Bash
Executable File
#! /bin/sh --
|
|
# ============================================================================
|
|
# Copyright 2023 Alan de Freitas.
|
|
# Copyright 2025 Gennaro Prota.
|
|
#
|
|
# 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)
|
|
# ============================================================================
|
|
|
|
set -eu
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
echo "No playbook supplied, using default playbook."
|
|
PLAYBOOK="local-playbook.yml"
|
|
else
|
|
PLAYBOOK=$1
|
|
fi
|
|
|
|
SCRIPT_DIR=$( dirname -- "${BASH_SOURCE[0]}" )
|
|
cd "$SCRIPT_DIR"
|
|
|
|
echo "Installing npm dependencies..."
|
|
npm ci
|
|
|
|
echo "Building docs in custom dir..."
|
|
PATH="$(pwd)/node_modules/.bin:${PATH}"
|
|
export PATH
|
|
npx antora --clean --fetch "$PLAYBOOK" --stacktrace --log-level all
|
|
cp -f html/index.html html/dynamic_bitset.html # redirects from pre-Antora docs location
|
|
echo "Done"
|