mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 12:12:50 +01:00
Add check-book.sh script
This commit is contained in:
parent
a66540efa0
commit
d41d28b60d
2 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
|||
/target
|
||||
Cargo.lock
|
||||
*.hex
|
||||
book-target/
|
||||
|
|
18
check-book.sh
Executable file
18
check-book.sh
Executable 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/
|
Loading…
Reference in a new issue