docs(gen): Use absolute paths for docs.rs sake

Using relative paths will work from github but when we include
`README.md` into `lib.rs`, they will break.
This commit is contained in:
Ed Page 2021-12-14 13:00:36 -06:00
parent b3315f995d
commit 8e5a62faed
2 changed files with 7 additions and 2 deletions

View file

@ -22,6 +22,11 @@ categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
readme = "README.md"
[package.metadata.release]
pre-release-replacements = [
{file="README.md", search="github.com/clap-rs/clap/blob/[^/]+/", replace="github.com/clap-rs/clap/blob/{{tag_name}}/", exactly=4, prerelease = true},
]
[lib]
bench = false

View file

@ -13,8 +13,8 @@ Dual-licensed under [Apache 2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT).
1. [About](#about)
2. [API Reference](https://docs.rs/clap_generate)
3. [Questions & Discussions](https://github.com/clap-rs/clap/discussions)
4. [CONTRIBUTING](CONTRIBUTING.md)
5. [Sponsors](../README.md#sponsors)
4. [CONTRIBUTING](https://github.com/clap-rs/clap/blob/v3.0.0-rc.4/clap_generate/CCONTRIBUTING.md)
5. [Sponsors](https://github.com/clap-rs/clap/blob/v3.0.0-rc.4/README.md#sponsors)
## About