diff --git a/entrypoint.sh b/entrypoint.sh index 17de62a..6e99e00 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,7 +10,7 @@ help() { usage: $0 -d --dir [dir] path to the documentation root - required -t --type [docusaurus|doxygen|swagger] type of documentation generator to use. - required - -l --dest [dir] path to where to put the documentation outputs in your CodeDoc space - optional + -l --dest [dir] path to where to put the documentation outputs in your CodeDoc space - optional !! cannot be absolute !! EOF exit 1 } @@ -52,7 +52,7 @@ fi generate "$DOC_DIR" # generates doc using the wanted generator -SERVER_TARGET="/usr/share/nginx/html/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/" +SERVER_TARGET="/usr/share/nginx/html/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DEST" # launches rsync in archive, verbose and compression mode # creates target directory ($SERVER_TARGET) on server