[docs] move site gen to a post-push hook

This commit is contained in:
Jan Petykiewicz 2026-04-19 00:09:33 -07:00
commit 9453e9203a
4 changed files with 81 additions and 61 deletions

19
scripts/enable_git_hooks.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
set -Eeuo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
git config core.hooksPath .githooks
if [[ $# -ge 1 ]]; then
git config meanas.docsSiteUrl "$1"
fi
echo "Configured core.hooksPath=.githooks"
if git config --get meanas.docsSiteUrl >/dev/null 2>&1; then
echo "Configured meanas.docsSiteUrl=$(git config --get meanas.docsSiteUrl)"
else
echo "No meanas.docsSiteUrl configured"
fi