mirror of https://github.com/rust-lang/book
ci: validate that all used references are defined
this will catch issues like https://github.com/rust-lang/book/issues/2010
This commit is contained in:
parent
7ddc46460f
commit
38ceba56a8
|
@ -19,3 +19,9 @@ echo 'Building...'
|
|||
mdbook build
|
||||
echo 'Linting for local file paths...'
|
||||
cargo run --bin lfp src
|
||||
echo 'Validating references'
|
||||
for file in src/*.md ; do
|
||||
echo Checking references in $file
|
||||
cargo run --quiet --bin link2print < $file > /dev/null
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue