Skip to content

Commit 94df44f

Browse files
committed
set path accordingly
1 parent 370f30a commit 94df44f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.readthedocs.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ build:
1616
-L --proto '=https' --tlsv1.2 -sSf
1717
https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh
1818
| bash
19+
# add .cargo bin to PATH
1920
# install mdbook and mdbook-alerts
20-
- cargo binstall -y mdbook mdbook-alerts
2121
# build docs
22-
- mdbook build docs
22+
- >-
23+
PATH=/home/docs/.cargo/bin:PATH &&
24+
cargo binstall -y mdbook mdbook-alerts &&
25+
mdbook build docs
2326
# move HTML output to required RTD output path
2427
- mkdir -p ${READTHEDOCS_OUTPUT}
2528
- mv docs/book/html/ "${READTHEDOCS_OUTPUT}"

0 commit comments

Comments
 (0)