2024-08-13 17:58:43 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2024-12-17 18:49:05 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 3mdeb <contact@3mdeb.com>
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
2024-08-13 17:58:43 +02:00
|
|
|
TEMP_DIR=$(mktemp -d)
|
2024-11-20 13:51:13 +01:00
|
|
|
FILE_NAME="$TEMP_DIR/all-keywords.robot"
|
2024-08-13 17:58:43 +02:00
|
|
|
|
2024-11-20 13:51:13 +01:00
|
|
|
python3 scripts/create-docs.py $FILE_NAME
|
2024-08-13 17:58:43 +02:00
|
|
|
|
|
|
|
|
libdoc "$TEMP_DIR/all-keywords.robot" "$TEMP_DIR/all-keywords.html" >/dev/null 2>&1
|
|
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
|
echo "libdoc command failed"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cp "$TEMP_DIR/all-keywords.html" ./docs/index.html
|
|
|
|
|
|
|
|
|
|
rm "$TEMP_DIR/all-keywords.robot"
|
|
|
|
|
rm "$TEMP_DIR/all-keywords.html"
|
|
|
|
|
rmdir "$TEMP_DIR"
|
|
|
|
|
|
|
|
|
|
echo "Documentation generated and saved as ./docs/index.html"
|