1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Tools: Fixed building of API doc

This commit is contained in:
Laurent Cozic 2020-03-08 09:05:52 +00:00
parent 5db362e812
commit b60952d684

View File

@ -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 "---------------------------------------------------"