fleet-memory/scripts/generate-openapi.sh
Nicolò Boschi f42476bf94
fix: make sure openai provider works + docs updates (#23)
* fix: make sure openai provider works

* fix: make sure openai provider works

* fix
2025-12-10 16:10:10 +01:00

25 lines
652 B
Bash
Executable file

#!/bin/bash
set -e
# Script to generate OpenAPI specification and update documentation
# This runs the generate-openapi command from hindsight-dev and regenerates docs
cd "$(dirname "$0")/.."
ROOT_DIR=$(pwd)
echo "Generating OpenAPI specification..."
cd hindsight-dev
uv run generate-openapi
echo ""
echo "Copying OpenAPI spec to documentation..."
cp "$ROOT_DIR/openapi.json" "$ROOT_DIR/hindsight-docs/openapi.json"
cp "$ROOT_DIR/openapi.json" "$ROOT_DIR/hindsight-docs/static/openapi.json"
echo ""
echo "Building documentation..."
cd "$ROOT_DIR/hindsight-docs"
npm run build
echo ""
echo "OpenAPI spec and documentation generated successfully!"