Artifact 4f29d67e92596e7a502d6bbcd975924c465f2f610844946c767458400ce71fa7:
- Executable file
scripts/build-docs.sh
— part of check-in
[d59e2dece9]
at
2026-04-26 15:20:20
on branch trunk
— Merge pull request #78 from danmestas/add-docs-site
docs: Hugo+hextra docs site with Cloudflare Workers deploy (user: [email protected], size: 853) [annotate] [blame] [check-ins using]
#!/usr/bin/env bash # Build the EdgeSync docs site. Used by both wrangler.jsonc (Cloudflare's # Linux build container) and local `wrangler deploy` from macOS. # # Strategy: # - If `hugo` is on PATH, use it (developer machines, CI with hugo preinstalled). # - Otherwise download the Linux extended build into the repo root and use that # (Cloudflare Workers build container, which has no Hugo by default). set -euo pipefail HUGO_VERSION="0.160.0" if command -v hugo >/dev/null 2>&1; then HUGO=hugo else if [ ! -x ./hugo ]; then echo "Downloading Hugo extended ${HUGO_VERSION} (linux-amd64)..." curl -sSL "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" | tar xz hugo fi HUGO=./hugo fi bash scripts/gen-llms-txt.sh "${HUGO}" -s docs/site --minify