Files
EndraApp/docs/_docs_tools/build_api_ref.sh
2025-09-15 14:32:21 +02:00

14 lines
318 B
Bash
Executable File

#!/bin/bash
set -e # Exit if any command fails
# the absolute paths of this script and it's directory
SCRIPT_PATH=$(realpath -s "$0")
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
cd $SCRIPT_DIR
source ${SCRIPT_DIR}/paths.sh
sphinx-apidoc -o $API_REF_TEMPLATE -e $SRC_DIR
sphinx-build -b html $API_REF_TEMPLATE $OUTPUT_API