- Add Gitea Actions workflow; point README to gitea.d-bis.org/Sankofa_Phoenix/SMOA - Expand .gitignore for Spring H2 data, secrets, Kotlin .kotlin/, tooling - Track docs/api/generated ReDoc bundle; refresh api docs README - Android: network/auth/sync, UI shell, tests; backend credentials/integrity APIs - Docs, scripts (generate-api-docs), modules and core updates Made-with: Cursor
27 lines
827 B
Bash
Executable File
27 lines
827 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates static API browser under docs/api/generated (ReDoc + spec path).
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
GEN="$ROOT/docs/api/generated"
|
|
SPEC_SRC="$ROOT/docs/api/api-specification.yaml"
|
|
mkdir -p "$GEN"
|
|
if [[ -f "$SPEC_SRC" ]]; then
|
|
cp -f "$SPEC_SRC" "$GEN/api-specification.yaml"
|
|
fi
|
|
cat > "$GEN/index.html" << 'HTMLEOF'
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>SMOA API — ReDoc</title>
|
|
<style>body { margin: 0; }</style>
|
|
</head>
|
|
<body>
|
|
<redoc spec-url="./api-specification.yaml"></redoc>
|
|
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
|
</body>
|
|
</html>
|
|
HTMLEOF
|
|
echo "Wrote $GEN/index.html and copied spec (if present)."
|