ci-docs: run rsdoc-stripper with abs path

an attempt to fix the $PATH issue
This commit is contained in:
Bilal Elmoussaoui 2020-06-20 12:38:40 +02:00
parent f6b869a834
commit 568a09eda8
No known key found for this signature in database
GPG key ID: 1FFF9F28D4E0F10E

View file

@ -19,14 +19,12 @@ build:
pages:
stage: deploy
before_script:
- export PATH="/root/.cargo/bin:$PATH"
script:
# generate the docs
- cp ./Handy-0.0.gir ./gir-files
- cargo run --release -- -c ./libhandy/Gir.toml -d ./gir-files --doc-target-path docs.md -m doc
- cargo install rustdoc-stripper
- rustdoc-stripper -g -o ./libhandy/docs.md
- /root/.cargo/bin/rustdoc-stripper -g -o ./libhandy/docs.md
- cargo doc -p libhandy --all-features
- mv target/doc/ public
artifacts: