#!/usr/bin/env bash # SPDX-FileCopyrightText: 2024 3mdeb # # SPDX-License-Identifier: Apache-2.0 TEMP_DIR=$(mktemp -d) FILE_NAME="$TEMP_DIR/all-keywords.robot" python3 scripts/create-docs.py $FILE_NAME 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"