Files
holos/hack/build-website
Jeff McCune f31a630139 doc/website: npm install in cloudflare (#198)
Cloudflare fails to build the website with:

```
07:44:47.179	sh: 1: docusaurus: not found
07:44:47.192	Failed: Error while executing user command. Exited with error code: 127
```

Resolve it by executing npm install from the build-website script and
note the script is intended for use in a cloudflare context.
2024-07-06 07:47:28 -07:00

17 lines
312 B
Bash
Executable File

#! /bin/bash
#
# This script is intended for execution in a Cloudflare Pages build context.
set -euo pipefail
PARENT="$(cd "$(dirname $0)" && pwd)"
TOPLEVEL="$(cd "${PARENT}/.." && pwd)"
cd "$TOPLEVEL/doc/website"
npm install
npm run build
echo "repo: ${TOPLEVEL}" >&2
echo "build: ./doc/website/build" >&2