mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Merge pull request #383 from teloxide/norm_docs3
Normalize docs (take 3)
This commit is contained in:
commit
e351a6695b
3 changed files with 5 additions and 4 deletions
|
@ -58,7 +58,8 @@ full = [
|
|||
]
|
||||
|
||||
[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 }
|
||||
|
||||
serde_json = "1.0"
|
||||
|
@ -99,7 +100,7 @@ tokio = { version = "1.2.0", features = ["fs", "rt-multi-thread", "macros"] }
|
|||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
||||
|
||||
[[test]]
|
||||
name = "redis"
|
||||
|
|
|
@ -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]]
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
//
|
||||
// To properly build docs of this crate run
|
||||
// ```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))]
|
||||
|
||||
|
|
Loading…
Reference in a new issue