98: ci: run linkchecker r=japaric a=japaric



Co-authored-by: Jorge Aparicio <jorge@japaric.io>
This commit is contained in:
bors[bot] 2018-11-03 18:48:16 +00:00
commit fc2c5e77cc
4 changed files with 20 additions and 2 deletions

View file

@ -52,7 +52,7 @@ behave the way you expect please open [an issue]!
- Applications must be written using the 2018 edition. - Applications must be written using the 2018 edition.
## [User documentation](https://japaric.github.io/cortex-m-rtfm/book/index.html) ## [User documentation](https://japaric.github.io/cortex-m-rtfm/book/)
## [API reference](https://japaric.github.io/cortex-m-rtfm/api/rtfm/index.html) ## [API reference](https://japaric.github.io/cortex-m-rtfm/api/rtfm/index.html)

View file

@ -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

View file

@ -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

View file

@ -7,7 +7,7 @@
//! //!
//! The user level documentation can be found [here]. //! The user level documentation can be found [here].
//! //!
//! [here]: ../../book/index.html //! [here]: ../../book/
//! //!
//! Don't forget to check the documentation of the [`#[app]`] attribute, which is the main component //! Don't forget to check the documentation of the [`#[app]`] attribute, which is the main component
//! of the framework. //! of the framework.