Create documentation on GHA

This commit is contained in:
Alexander Grund 2020-07-15 17:55:53 +02:00
parent 62494bccfd
commit 3d44f9bfda
No known key found for this signature in database
GPG key ID: E92C451FC21EF13F
6 changed files with 111 additions and 48 deletions

View file

@ -5,13 +5,6 @@
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
copy()
{
for dir; do true; done
mkdir -p "$dir"
cp "$@"
}
set -eux
export BOOST="$BOOST_ROOT"
@ -21,13 +14,7 @@ cd "$BOOST"
./b2 "$PROJECT_DIR/test" -q "$@"
cd "$PROJECT_DIR"
export BOOSTBOOK_DIR="$PROJECT_DIR/bin/turtle/boostbook"
copy -r "$BOOST"/tools/boostbook/xsl "$BOOSTBOOK_DIR"
copy -r "$BOOST"/tools/boostbook/dtd "$BOOSTBOOK_DIR"
copy -r build/boostbook/* "$BOOSTBOOK_DIR"
copy "$BOOST"/doc/src/boostbook.css doc/html
copy "$BOOST"/doc/src/images/*.png doc/html/images
copy "$BOOST"/doc/src/images/callouts/*.png doc/html/images/callouts
scripts/build_doc.sh "$@"
cd "$BOOST"
./b2 "$PROJECT_DIR/doc" -q "$@"
./b2 "$PROJECT_DIR/doc//mock_examples" -q "$@"