Skip to content

Commit d41d28b

Browse files
committed
Add check-book.sh script
1 parent a66540e commit d41d28b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/target
66
Cargo.lock
77
*.hex
8+
book-target/

check-book.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
cd book/en/
6+
mdbook build
7+
cd ../../
8+
9+
cargo doc --features thumbv7-backend
10+
11+
mkdir -p book-target/book/
12+
cp -r book/en/book/ book-target/book/en/
13+
cp LICENSE-* book-target/book/en
14+
cp -r target/doc/ book-target/api/
15+
16+
lychee --offline --format detailed book-target/book/en/
17+
18+
rm -rf book-target/

0 commit comments

Comments
 (0)