mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
run linkchecker
This commit is contained in:
parent
c27efea6b7
commit
9ddf3bf8e7
2 changed files with 18 additions and 0 deletions
|
@ -12,6 +12,8 @@ main() {
|
||||||
# install mdbook
|
# install mdbook
|
||||||
curl -LSfs https://japaric.github.io/trust/install.sh | \
|
curl -LSfs https://japaric.github.io/trust/install.sh | \
|
||||||
sh -s -- --git rust-lang-nursery/mdbook --tag v0.2.1
|
sh -s -- --git rust-lang-nursery/mdbook --tag v0.2.1
|
||||||
|
|
||||||
|
pip install linkchecker --user
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
16
ci/script.sh
16
ci/script.sh
|
@ -12,6 +12,22 @@ main() {
|
||||||
|
|
||||||
cargo check --target $T
|
cargo check --target $T
|
||||||
cargo check --features timer-queue --target $T
|
cargo check --features timer-queue --target $T
|
||||||
|
|
||||||
|
if [ $TRAVIS_RUST_VERSION = beta ]; then
|
||||||
|
rm -f .cargo/config
|
||||||
|
cargo doc --features timer-queue
|
||||||
|
( cd book && mdbook build )
|
||||||
|
|
||||||
|
local td=$(mktemp -d)
|
||||||
|
cp -r target/doc $td/api
|
||||||
|
cp -r book/book $td/
|
||||||
|
cp LICENSE-* $td/book/
|
||||||
|
|
||||||
|
linkchecker $td/book/
|
||||||
|
linkchecker $td/api/rtfm/
|
||||||
|
linkchecker $td/api/cortex_m_rtfm_macros/
|
||||||
|
fi
|
||||||
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue