Normalize docs

This commit is contained in:
Waffle 2021-01-07 14:58:48 +03:00
parent 34255d9f0b
commit d3ecca662b
3 changed files with 3 additions and 3 deletions

View file

@ -59,4 +59,4 @@ full = ["throttle", "cache_me", "auto_send"]
[package.metadata."docs.rs"] [package.metadata."docs.rs"]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]

View file

@ -1,6 +1,6 @@
[build] [build]
command = "rustup install nightly --profile minimal && cargo +nightly doc --all-features --no-deps && cp -r target/doc _netlify_out" command = "rustup install nightly --profile minimal && cargo +nightly doc --all-features --no-deps && cp -r target/doc _netlify_out"
environment = { RUSTDOCFLAGS= "--cfg docsrs" } environment = { RUSTDOCFLAGS= "--cfg docsrs -Znormalize-docs" }
publish = "_netlify_out" publish = "_netlify_out"
[[redirects]] [[redirects]]

View file

@ -5,7 +5,7 @@
// //
// To properly build docs of this crate run // To properly build docs of this crate run
// ```console // ```console
// $ RUSTDOCFLAGS="--cfg docsrs" cargo doc --open --all-features // $ RUSTDOCFLAGS="--cfg docsrs -Znormalize-docs" cargo doc --open --all-features
// ``` // ```
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg, doc_spotlight))] #![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg, doc_spotlight))]