#! /usr/bin/env bash cd "$(git rev-parse --show-toplevel)" || exit REPO_ROOT="$(pwd)" # Only regenerate the endpoint index if the spec build succeeded, so a failed # build can't render docs/endpoint-index.md from a stale/partial v1.json. (cd ErsatzTV && dotnet build -t:GenerateOpenApiDocuments) || exit cd "$REPO_ROOT" || exit python3 scripts/generate-endpoint-index.py