[docs] move site gen to a post-push hook
This commit is contained in:
parent
f52bf20dd5
commit
9453e9203a
4 changed files with 81 additions and 61 deletions
19
scripts/enable_git_hooks.sh
Executable file
19
scripts/enable_git_hooks.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue