From 8cb109d7c53effeba3ba85baf0d5ccc41427ceeb Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sat, 7 Jan 2023 21:01:09 +0100 Subject: [PATCH] added option to place generated doc in a custom path in the users's codedoc space --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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