Make catalog PDF links host-relative and add a hostname rewrite script.
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
New builds write path-relative PDF annotations so the tree can be served from docs.verae-time.net (or any host at the site root) without a rebuild. scripts/rewrite-docs-host.py retargets an already-built site when absolute URLs are preferred. Live service doors stay on their own hostnames.
This commit is contained in:
parent
85b5b53ea9
commit
20155de96b
4 changed files with 246 additions and 40 deletions
|
|
@ -1,5 +1,11 @@
|
|||
#!/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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue