Download scripts/docs.sh from gpu2grid/live: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/gpu2grid/live/resolve/main/scripts/docs.sh
- Command line
-
hf download hf://spaces/gpu2grid/live/scripts/docs.sh
-
curl -L -o docs.sh https://huggingface.co/spaces/gpu2grid/live/resolve/main/scripts/docs.sh
384 Bytes
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" | |
| python "$SCRIPT_DIR/gen_api_docs.py" | |
| case "${1:-}" in | |
| build) | |
| zensical build --clean --strict | |
| ;; | |
| serve) | |
| zensical serve --strict -a 0.0.0.0:7778 | |
| ;; | |
| *) | |
| echo "Usage: uv run bash scripts/docs.sh {build|serve}" >&2 | |
| exit 1 | |
| ;; | |
| esac | |