mirror of
https://github.com/tokio-rs/tracing.git
synced 2026-03-23 16:10:18 +00:00
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>
20 lines
456 B
TOML
20 lines
456 B
TOML
[build]
|
|
command = """
|
|
rustup install nightly --profile minimal \
|
|
&& cargo doc --no-deps --all-features
|
|
"""
|
|
publish = "target/doc"
|
|
|
|
[build.environment]
|
|
RUSTDOCFLAGS="""
|
|
-D warnings \
|
|
--cfg docsrs \
|
|
--html-before-content /opt/build/repo/assets/warning.html \
|
|
--html-in-header /opt/build/repo/assets/noindex.html \
|
|
--extend-css /opt/build/repo/assets/warning.css \
|
|
"""
|
|
|
|
[[redirects]]
|
|
from = "/"
|
|
to = "/tracing"
|