Merge pull request #383 from teloxide/norm_docs3

Normalize docs (take 3)
This commit is contained in:
Hirrolot 2021-05-16 08:33:38 +06:00 committed by GitHub
commit e351a6695b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -58,7 +58,8 @@ full = [
] ]
[dependencies] [dependencies]
teloxide-core = { version = "0.2.1", default-features = false } #teloxide-core = { version = "0.2.1", default-features = false }
teloxide-core = { git = "https://github.com/teloxide/teloxide-core.git", rev = "897ba7c941b651cf6b7e614b7d373d14426ed1da", default-features = false }
teloxide-macros = { version = "0.4", optional = true } teloxide-macros = { version = "0.4", optional = true }
serde_json = "1.0" serde_json = "1.0"
@ -99,7 +100,7 @@ tokio = { version = "1.2.0", features = ["fs", "rt-multi-thread", "macros"] }
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
[[test]] [[test]]
name = "redis" name = "redis"

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

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