Skip to content

Commit

Permalink
Add documentation build to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoddard committed Aug 3, 2023
1 parent 585c4a8 commit 1f28389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ then
exit 1
fi

if ! RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
then
echo "There are some documentation issues."
exit 1
fi

exit 0

0 comments on commit 1f28389

Please sign in to comment.