From f765278c6892a4e0e5c87b6556d02089287b9342 Mon Sep 17 00:00:00 2001 From: Waffle Date: Wed, 12 Aug 2020 22:49:58 +0300 Subject: [PATCH] add docs|master badge and netlify config --- README.md | 15 +++++++++------ netlify.toml | 12 ++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 netlify.toml diff --git a/README.md b/README.md index 427b78d3..ca7ad4c6 100644 --- a/README.md +++ b/README.md @@ -2,21 +2,24 @@

teloxide

- - - + + + + + + - - - + + + 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. diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..27cffb2f --- /dev/null +++ b/netlify.toml @@ -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"