Artifact 14863cf1530de5a3c5320c19291c7035a066e2d177222b2e9d539fc86b2469b6:
- Executable file
scripts/docs-build.sh
— part of check-in
[1ef14e7167]
at
2026-10-23 21:13:57
on branch main
— docs: add scripts/docs-build.sh for the deploy build
Runs sync-version.sh, gen-llms-txt.sh and Hugo, given the hugo binary as its first argument. It needs no Go toolchain: the inputs that do are committed and checked for freshness in CI. make docs-build uses it. (user: [email protected], size: 580) [annotate] [blame] [check-ins using] [more...]
#!/usr/bin/env bash # Builds the docs site for deploy: writes the release version and Go version # into hugo.yaml, regenerates llms*.txt, then runs Hugo in docs/site. Run from # the repo root. $1 is the hugo binary, resolved from docs/site (default: # `hugo` on PATH); the Cloudflare build passes ../../hugo. # # Needs no Go toolchain. The generated inputs that do (data/*.json, the CLI # reference) are committed, and CI fails when they are stale. set -euo pipefail HUGO="${1:-hugo}" bash scripts/sync-version.sh bash scripts/gen-llms-txt.sh cd docs/site "$HUGO" --gc --minify