Skip to content

Commit

Permalink
chore: deny warnings in docs builds
Browse files Browse the repository at this point in the history
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 <eliza@buoyant.io>
  • Loading branch information
hawkw committed Dec 29, 2021
1 parent d868054 commit 46a3d96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 46a3d96

Please sign in to comment.