translated all texts to english

pr
Override-6 3 years ago
parent 128c04b3a4
commit ced9f04cf5

@ -5,8 +5,23 @@ echo "Repository owner: $DRONE_REPO_OWNER"
echo "Generating and deploying documentation for user $DRONE_REPO_OWNER and repository $DRONE_REPO_NAME"
help() {
cat << EOF
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
EOF
exit 1
}
DEST=""
while [ "$1" ]; do
case "$1" in
"-l" | "--dest")
DEST="$2"
shift 1
;;
"-d" | "--dir")
DOC_DIR="$2"
shift 1
@ -28,8 +43,9 @@ while [ "$1" ]; do
shift
done
if [ ! "$GENERATOR_SCRIPT" ] || [ ! "$DOC_DIR" ]; then
echo "option -t <type> obligatoire" >&2
if [ ! "$GENERATOR_SCRIPT" ] || [ ! "$DOC_DIR" ] || echo "$DEST" | grep -E -q "^[\/].*"; then
echo "$0: bad usage" >&2
help
fi
. "$GENERATOR_SCRIPT"

Loading…
Cancel
Save