#!/usr/bin/env bash # Build and rsync docs site to zapier.georgelambert.org on NS1. # # Catalog file links are relative (any hostname at the site root). # To republish under another name without a full rebuild: # python3 scripts/rewrite-docs-host.py --site ./site \ # --from https://zapier.georgelambert.org --to https://docs.verae-time.net # Optional absolute PDF URLs at build time: DOCS_PUBLIC_URL=https://docs.verae-time.net set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" HOST="${DEPLOY_HOST:-marchon@70.88.205.138}" DEST="${DEPLOY_DEST:-/SSD2/sites/zapier.georgelambert.org}" python3 "$ROOT/scripts/build-docs-site.py" ssh "$HOST" "mkdir -p '$DEST'" rsync -avz --delete "$ROOT/site/" "$HOST:$DEST/" echo "rsync done → $HOST:$DEST" echo "https://zapier.georgelambert.org/"