fix build docs, extended data types en option v2, mb_event check

This commit is contained in:
Alex Lisitsyn committed 2024-09-30 20:19:38 +08:00
1 parent cce9629da2
commit 738c6d9ce5
9 files changed
+111 -50

No files matched your search

+14 -2
View File
@@ -1,7 +1,17 @@
#!/bin/bash
rm -rf docs
build-docs --target esp32 --language en && true
exit_if_error() {
local exit_code=$1
shift
[[ $exit_code ]] && # do nothing if no error code passed
((exit_code != 0)) && { # do nothing if error code is 0
printf 'ERROR: %s\n' "$@" >&2
exit "$exit_code"
}
}
rm -rf _build
build-docs --target esp32 --language en || exit_if_error $? "Documentation build fail."
# Modifes target field of html files
ELEMENT="<script type='text/javascript'>
@@ -24,4 +34,6 @@ for FILE in ${FILES}
echo ${ELEMENT} >> "${FILE}"
done
exit_if_error $? "Documentation build fail."
echo "Documentation build ok."