From 46a3d9695230b7028e9d44fb1e20211a862e86c3 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Wed, 29 Dec 2021 10:33:34 -0800 Subject: [PATCH] chore: deny warnings in docs builds This way, we'll get a build failure on PRs if the docs are broken. I really thought we already did this, but apparently, we don't? Signed-off-by: Eliza Weisman --- netlify.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 6eb06e89..37a3ea0f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,9 +3,14 @@ rustup install nightly --profile minimal \ && cargo doc --no-deps --all-features """ - environment = { RUSTDOCFLAGS= "--cfg docsrs" } publish = "target/doc" +[build.environment] + RUSTDOCFLAGS=""" + -D warnings \ + --cfg docsrs + """ + [[redirects]] from = "/" to = "/tracing"