mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 14:22:35 +00:00
Use cargo run
for github pages instead of hard-coding the binary path
This commit is contained in:
parent
d4a5176f26
commit
65900b87e6
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,8 @@ set -ex
|
|||
# Only run this on the master branch for stable
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ||
|
||||
[ "$TRAVIS_BRANCH" != "master" ] ||
|
||||
[ "$TRAVIS_RUST_VERSION" != "stable" ]; then
|
||||
[ "$TRAVIS_RUST_VERSION" != "stable" ] ||
|
||||
[ "$TARGET" != "x86_64-unknown-linux-gnu" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -23,7 +24,7 @@ echo -e "${CYAN}Running cargo doc${NC}"
|
|||
cargo doc --features regenerate-css
|
||||
|
||||
echo -e "${CYAN}Running mdbook build${NC}"
|
||||
target/"$TARGET"/debug/mdbook build book-example/
|
||||
cargo run -- build book-example/
|
||||
|
||||
echo -e "${CYAN}Copying book to target/doc${NC}"
|
||||
cp -R book-example/book/* target/doc/
|
||||
|
|
Loading…
Reference in a new issue