CI: Build docs for all crates

This commit is contained in:
Henrik Tjäder 2023-02-08 19:49:15 +01:00
parent bedc9b55eb
commit a7c213e950

View file

@ -409,24 +409,23 @@ jobs:
run: pip install git+https://github.com/linkchecker/linkchecker.git run: pip install git+https://github.com/linkchecker/linkchecker.git
- name: Remove cargo-config - name: Remove cargo-config
working-directory: ./rtic
run: rm -f .cargo/config run: rm -f .cargo/config
- name: Fail on warnings
working-directory: ./rtic
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
- name: Build docs - name: Build docs
working-directory: ./rtic
run: cargo doc run: cargo doc
- name: Check links - name: Check links
working-directory: ./rtic
run: | run: |
td=$(mktemp -d) td=$(mktemp -d)
cp -r target/doc $td/api cp -r target/doc $td/api
linkchecker $td/api/rtic/ linkchecker $td/api/rtic
linkchecker $td/api/rtic_macros/ linkchecker $td/api/rtic_macros/
linkchecker $td/api/rtic-arbiter/
linkchecker $td/api/rtic-channel/
linkchecker $td/api/rtic-common/
linkchecker $td/api/rtic-macros/
linkchecker $td/api/rtic-monotonics/
linkchecker $td/api/rtic-time/
# Build the books # Build the books
mdbook: mdbook: