From b60952d68495cb12f863aa438c7f97a4cdc851f6 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 8 Mar 2020 09:05:52 +0000 Subject: [PATCH] Tools: Fixed building of API doc --- Tools/build-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/build-all.sh b/Tools/build-all.sh index b610f8b9c0..1e7efce3b7 100755 --- a/Tools/build-all.sh +++ b/Tools/build-all.sh @@ -6,9 +6,9 @@ ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "---------------------------------------------------" echo "Rebuild API doc..." echo "---------------------------------------------------" -# TODO: When the apidoc command fails, it copy the failure in api.md, but shouldn't be doing that cd "$ROOT_DIR/../CliClient" -npm run start -- apidoc > "$ROOT_DIR/../readme/api.md" +API_DOC="$(npm run --silent start -- apidoc)" +echo "$API_DOC" > "$ROOT_DIR/../readme/api.md" cd "$ROOT_DIR" echo "---------------------------------------------------"