|
|
@ -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"
|
|
|
|