Skip to content

Commit 1f28389

Browse files
committed
Add documentation build to pre-commit
1 parent 585c4a8 commit 1f28389

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ then
2323
exit 1
2424
fi
2525

26+
if ! RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
27+
then
28+
echo "There are some documentation issues."
29+
exit 1
30+
fi
31+
2632
exit 0

0 commit comments

Comments
 (0)