Merge pull request #36 from teloxide/norm_docs

Normalize docs
This commit is contained in:
Temirkhan Myrzamadi 2021-01-07 21:06:15 +06:00 committed by GitHub
commit 3c12e56f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]

View file

@ -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]]

View file

@ -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))]