Files
BotPages/scripts/generate-docs.sh
2025-12-24 05:55:26 +03:00

15 lines
371 B
Bash

#!/usr/bin/env bash
DOCFX_PATH=${DOCFX_PATH:-docfx}
WORKING_DIR=$(pwd)
if ! command -v "$DOCFX_PATH" >/dev/null 2>&1; then
echo "docfx not found. Install it or set DOCFX_PATH to the executable path."
fi
pushd "$WORKING_DIR" > /dev/null
$DOCFX_PATH metadata docfx.json
$DOCFX_PATH build docfx.json
popd > /dev/null
echo "Docfx build complete. Output in _site folder"