added option to place generated doc in a custom path in the users's codedoc space

pr
Override-6 2 years ago
parent ced9f04cf5
commit 8cb109d7c5

@ -10,7 +10,7 @@ help() {
usage: $0 usage: $0
-d --dir [dir] path to the documentation root - required -d --dir [dir] path to the documentation root - required
-t --type [docusaurus|doxygen|swagger] type of documentation generator to use. - 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 EOF
exit 1 exit 1
} }
@ -52,7 +52,7 @@ fi
generate "$DOC_DIR" # generates doc using the wanted generator 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 # launches rsync in archive, verbose and compression mode
# creates target directory ($SERVER_TARGET) on server # creates target directory ($SERVER_TARGET) on server

Loading…
Cancel
Save