From d3ecca662baccb075a34b3f5702842e3857b22c8 Mon Sep 17 00:00:00 2001 From: Waffle Date: Thu, 7 Jan 2021 14:58:48 +0300 Subject: [PATCH] Normalize docs --- Cargo.toml | 2 +- netlify.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3003d6ab..09993956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,4 +59,4 @@ full = ["throttle", "cache_me", "auto_send"] [package.metadata."docs.rs"] all-features = true -rustdoc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"] diff --git a/netlify.toml b/netlify.toml index be511e64..e55e0d1a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] 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" [[redirects]] diff --git a/src/lib.rs b/src/lib.rs index 67231953..d1105eaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ // // To properly build docs of this crate run // ```console -// $ RUSTDOCFLAGS="--cfg docsrs" cargo doc --open --all-features +// $ RUSTDOCFLAGS="--cfg docsrs -Znormalize-docs" cargo doc --open --all-features // ``` #![forbid(unsafe_code)] #![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg, doc_spotlight))]