Skip to content

Commit d85c6b0

Browse files
committed
fix(docs): make ci.sh path-agnostic for CI
1 parent 0ca739c commit d85c6b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/ci.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ set -ex
44
DOCS_FORMAT=${DOCS_FORMAT:-all} # Default to building all formats if not specified
55
VALIDATE_NOTEBOOK_EXECUTION=${VALIDATE_NOTEBOOK_EXECUTION:-1} # Default to validating notebooks
66

7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
DOCKER_DIR="${SCRIPT_DIR}/docker"
9+
710
(
8-
cd docs/docker \
11+
cd "$DOCKER_DIR" \
912
&& docker compose build sphinx \
1013
&& docker compose run --rm \
1114
-e DOCS_FORMAT=$DOCS_FORMAT \

0 commit comments

Comments
 (0)