From 38ceba56a8bf4efaa977000b85b7a9df191cb827 Mon Sep 17 00:00:00 2001 From: Paul Emmerich Date: Sun, 14 Jul 2019 22:25:04 +0200 Subject: [PATCH] ci: validate that all used references are defined this will catch issues like https://github.com/rust-lang/book/issues/2010 --- ci/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index 9ad1781381..d8f966f07e 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -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 +