diff --git a/README.md b/README.md index e538ace..2ef5519 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Releases: push a `v*` tag matching package.json; CI builds `site/index.html` is the hqterm.sh landing page and `site/docs.html` is https://hqterm.sh/docs; `install.sh` is served at https://hqterm.sh/install and `install.ps1` at https://hqterm.sh/install.ps1. Publish them with -`scripts/deploy-site.sh`, which bakes the pit.world network footer into every -page and rsyncs the lot to dev2's `/var/www/hqterm.sh`. +`scripts/deploy-site.sh`, which rsyncs the pages and their shared Profullstack +footer to dev2's `/var/www/hqterm.sh`. MIT. diff --git a/scripts/deploy-site.sh b/scripts/deploy-site.sh index 6ef2c41..aab36a0 100755 --- a/scripts/deploy-site.sh +++ b/scripts/deploy-site.sh @@ -1,38 +1,22 @@ #!/bin/sh -# Publish hqterm.sh: site/ plus the two installers, with the pit.world network -# footer baked in as the last thing in of every page. +# Publish hqterm.sh: site/ plus the two installers. Each HTML page carries the +# shared Profullstack footer and refreshes it from the published template. # # scripts/deploy-site.sh build dist/site and rsync it to dev2 # scripts/deploy-site.sh --build build dist/site only # -# hqterm.sh is plain files behind nginx (no server code), so the footer is -# fetched here, at deploy time, not per request. If pit.world is slow (3 s) or -# down, the pages ship without it rather than failing the deploy. +# hqterm.sh is plain files behind nginx (no server code); its pages include a +# server-rendered fallback and load the shared template in the browser. set -eu cd "$(dirname "$0")/.." OUT=dist/site DEST=${DEST:-anthony@dev2.profullstack.com:/var/www/hqterm.sh/} -PIT_URL='https://pit.world/snippets/footer.html?site=hqterm.sh' - rm -rf "$OUT" mkdir -p "$OUT" cp -R site/. "$OUT/" cp install.sh install.ps1 "$OUT/" -PIT=$(curl -fsS -m 3 "$PIT_URL" 2>/dev/null || true) -case "$PIT" in - *data-pit-footer*) - export PIT - for f in "$OUT"/*.html; do - # Before the LAST only. - perl -0pi -e 's{(?![\s\S]*)}{$ENV{PIT}\n}' "$f" - done - echo "pit footer baked into $(ls "$OUT"/*.html | wc -l) page(s)" - ;; - *) echo "pit footer unavailable; publishing without it" >&2 ;; -esac - [ "${1:-}" = "--build" ] && exit 0 # Explicit modes: a restrictive local umask (007) would otherwise publish # 0770/0660 files that nginx cannot read, and every page 500s. diff --git a/site/docs.html b/site/docs.html index 05aa6af..8e76d19 100644 --- a/site/docs.html +++ b/site/docs.html @@ -240,5 +240,58 @@

Update and uninstall

# Windows: Remove-Item ~\.local\bin\hqsh.exe, then remove that folder from your user PATH +
+ diff --git a/site/index.html b/site/index.html index 7a5ddb6..1e5a4fd 100644 --- a/site/index.html +++ b/site/index.html @@ -148,11 +148,60 @@

hqterm desktop

curl -fsSL https://hqterm.sh/install | sh -s -- --desktop
- - - + +
+