add docs|master badge and netlify config

This commit is contained in:
Waffle 2020-08-12 22:49:58 +03:00
parent 00e39e8d35
commit f765278c68
2 changed files with 21 additions and 6 deletions

View file

@ -2,21 +2,24 @@
<img src="ICON.png" width="250"/> <img src="ICON.png" width="250"/>
<h1>teloxide</h1> <h1>teloxide</h1>
<a href="https://docs.rs/teloxide/">
<img src="https://img.shields.io/badge/docs.rs-v0.3.0-blue.svg">
</a>
<a href="https://github.com/teloxide/teloxide/actions"> <a href="https://github.com/teloxide/teloxide/actions">
<img src="https://github.com/teloxide/teloxide/workflows/Continuous%20integration/badge.svg"> <img src="https://github.com/teloxide/teloxide/workflows/Continuous%20integration/badge.svg">
</a> </a>
<a href="https://teloxide.netlify.com">
<img src="https://img.shields.io/badge/docs-master-blue)">
</a>
<a href="https://docs.rs/teloxide/">
<img src="https://img.shields.io/badge/docs.rs-v0.3.0-blue.svg">
</a>
<a href="https://crates.io/crates/teloxide"> <a href="https://crates.io/crates/teloxide">
<img src="https://img.shields.io/badge/crates.io-v0.3.0-orange.svg"> <img src="https://img.shields.io/badge/crates.io-v0.3.0-orange.svg">
</a> </a>
<a href="https://t.me/teloxide">
<img src="https://img.shields.io/badge/official%20chat-t.me%2Fteloxide-blueviolet">
</a>
<a href="https://core.telegram.org/bots/api"> <a href="https://core.telegram.org/bots/api">
<img src="https://img.shields.io/badge/API coverage-Up to 0.4.9 (inclusively)-green.svg"> <img src="https://img.shields.io/badge/API coverage-Up to 0.4.9 (inclusively)-green.svg">
</a> </a>
<a href="https://t.me/teloxide">
<img src="https://img.shields.io/badge/official%20chat-t.me%2Fteloxide-blueviolet">
</a>
A full-featured framework that empowers you to easily build [Telegram bots](https://telegram.org/blog/bot-revolution) using the [`async`/`.await`](https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html) syntax in [Rust](https://www.rust-lang.org/). It handles all the difficult stuff so you can focus only on your business logic. A full-featured framework that empowers you to easily build [Telegram bots](https://telegram.org/blog/bot-revolution) using the [`async`/`.await`](https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html) syntax in [Rust](https://www.rust-lang.org/). It handles all the difficult stuff so you can focus only on your business logic.
</div> </div>

12
netlify.toml Normal file
View file

@ -0,0 +1,12 @@
[build]
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "target/doc"
# Default build command.
command = 'curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --profile minimal && source $HOME/.cargo/env && RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --no-deps --all-features'
[[redirects]]
from = "/*"
to = "/teloxide"