From 78a0c4561c832c8f0491d9181287294957246abd Mon Sep 17 00:00:00 2001 From: Alexis Durgnat <alexis.durgnat@hesge.ch> Date: Wed, 3 Nov 2021 11:54:21 +0100 Subject: [PATCH] Build documentation by default --- Scripts/entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Scripts/entrypoint.sh b/Scripts/entrypoint.sh index f079dcc..152bbbd 100644 --- a/Scripts/entrypoint.sh +++ b/Scripts/entrypoint.sh @@ -64,7 +64,7 @@ function copy_artifacts() { echo -e "${YLW}=== Lib (${GRN}./build/lib${YLW}): ===${NC}" echo "`find /build/lib/ -type f | sed 's/\/build\/lib\///g'`" echo -e "${YLW}=== Python Wrapper (${GRN}./build/wrapper${YLW}): ===${NC}" - echo "`find /build/wrapper/ -type f | sed 's/\/build\/wrapper\///g'`" + echo "`find /build/wrapper/ -type f -not -path "/build/wrapper/docs/*" | sed 's/\/build\/wrapper\///g'`" echo_links } @@ -152,7 +152,8 @@ if [ $# -gt 0 ]; then if [ $# -lt 1 ]; then # Clean everything if there isn't any provided component make_target $SBOX_LIB clean - make_target $SBOX_PYWR clean + make_target $SBOX_PYWR clean + clean_python_doc else for i in "$@"; do # Clean every component passed in parameters @@ -161,6 +162,8 @@ if [ $# -gt 0 ]; then cd $app make clean done + elif [ $i = "docs" ]; then + clean_python_doc else pth=$(get_target_path "$i") make_target $pth clean @@ -188,6 +191,7 @@ fi # If we're here, there wasn't any argument provided, so we just build # everything and copy the output. build_all +build_doc copy_artifacts exit 0 \ No newline at end of file -- GitLab