chore: add Netlify doc previews (#4699)

This commit is contained in:
David Barsky 2022-05-19 03:30:06 -04:00 committed by GitHub
parent 0b8a3c34a1
commit 3fce06c2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

16
netlify.toml Normal file
View File

@ -0,0 +1,16 @@
[build]
command = """
rustup install nightly --profile minimal && cargo doc --no-deps --all-features
"""
publish = "target/doc"
[build.environment]
RUSTDOCFLAGS="""
--cfg docsrs \
--cfg tokio_unstable \
"""
RUSTFLAGS="--cfg tokio_unstable --cfg docsrs"
[[redirects]]
from = "/"
to = "/tokio"

View File

@ -12,7 +12,7 @@
/// for **all** branches complete regardless if any complete with `Err`. Use
/// [`try_join!`] to return early when `Err` is encountered.
///
/// [`try_join!`]: macro@try_join
/// [`try_join!`]: crate::try_join
///
/// # Notes
///