diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs index ba5ca44526b86..e83a1f8aea73f 100644 --- a/src/tools/linkchecker/main.rs +++ b/src/tools/linkchecker/main.rs @@ -121,6 +121,12 @@ fn check(cache: &mut Cache, if file.extension().and_then(|s| s.to_str()) == Some("js") { return None; } + + // ignore handlebars files as they use {{}} to build links, we only + // want to test the generated files + if file.extension().and_then(|s| s.to_str()) == Some("hbs") { + return None; + } // Unfortunately we're not 100% full of valid links today to we need a few // whitelists to get this past `make check` today.