some help changes and added link to the generated doc after generation completed

pr
Override-6 2 years ago
parent 8cb109d7c5
commit 8676d1f7a3

@ -6,11 +6,11 @@ echo "Repository owner: $DRONE_REPO_OWNER"
echo "Generating and deploying documentation for user $DRONE_REPO_OWNER and repository $DRONE_REPO_NAME" echo "Generating and deploying documentation for user $DRONE_REPO_OWNER and repository $DRONE_REPO_NAME"
help() { help() {
cat << EOF cat <<EOF
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 !! cannot be absolute !! -l --dest [dir] path to where to put the documentation outputs in your repository's CodeDoc space - optional !! cannot be absolute !!
EOF EOF
exit 1 exit 1
} }
@ -61,3 +61,5 @@ rsync -avz \
--rsync-path="mkdir -p \"$SERVER_TARGET\" && rsync" \ --rsync-path="mkdir -p \"$SERVER_TARGET\" && rsync" \
-e "ssh -o StrictHostKeyChecking=no" \ -e "ssh -o StrictHostKeyChecking=no" \
--delete "$GEN_PATH"/* root@nginx:"$SERVER_TARGET" --delete "$GEN_PATH"/* root@nginx:"$SERVER_TARGET"
echo "documentation generated and deployed at https://codefirst.iut.uca.fr/documentation/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DEST/index.html"

Loading…
Cancel
Save