From 3fce06c2cc411ba69a06f94cc9c58ef9d2237bab Mon Sep 17 00:00:00 2001 From: David Barsky Date: Thu, 19 May 2022 03:30:06 -0400 Subject: [PATCH] chore: add Netlify doc previews (#4699) --- netlify.toml | 16 ++++++++++++++++ tokio/src/macros/join.rs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..5705ce0d1 --- /dev/null +++ b/netlify.toml @@ -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" diff --git a/tokio/src/macros/join.rs b/tokio/src/macros/join.rs index ab85cdec2..9697936c8 100644 --- a/tokio/src/macros/join.rs +++ b/tokio/src/macros/join.rs @@ -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 ///