docs: move public docs generation to local workflow
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
mkdir -p docs/generated docs/diagrams docs/public
|
||||
|
||||
scripts/docs/generate-all.sh
|
||||
|
||||
if [ ! -d docs/public ] || [ -z "$(find docs/public -mindepth 1 -print -quit)" ]; then
|
||||
echo "ERROR: docs/public is missing or empty after generation." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Public docs generated in docs/public. Review changes before commit."
|
||||
Reference in New Issue
Block a user