Add check-book.sh script

This commit is contained in:
datdenkikniet 2023-05-05 18:52:14 +02:00
parent a66540efa0
commit d41d28b60d
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@
/target
Cargo.lock
*.hex
book-target/

18
check-book.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
set -e
cd book/en/
mdbook build
cd ../../
cargo doc --features thumbv7-backend
mkdir -p book-target/book/
cp -r book/en/book/ book-target/book/en/
cp LICENSE-* book-target/book/en
cp -r target/doc/ book-target/api/
lychee --offline --format detailed book-target/book/en/
rm -rf book-target/