From 7a6cdaa414f40d8c7626703b4f3660a3891f071f Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 12 Dec 2020 15:39:18 +0300 Subject: [PATCH] Fix netlify doc build --- netlify.toml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/netlify.toml b/netlify.toml index 27cffb2f..1197ce45 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,12 +1,8 @@ -[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' +[build] +command = "rustup install nightly --profile minimal && cargo +nightly doc --all-features --no-deps && cp -r target/doc _netlify_out" +environment = { RUSTDOCFLAGS= "--cfg docsrs" } +publish = "_netlify_out" [[redirects]] - from = "/*" - to = "/teloxide" +from = "/" +to = "/teloxide"