mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Fix netlify doc build
This commit is contained in:
parent
56de17d989
commit
7a6cdaa414
1 changed files with 6 additions and 10 deletions
16
netlify.toml
16
netlify.toml
|
@ -1,12 +1,8 @@
|
||||||
[build]
|
[build]
|
||||||
# Directory (relative to root of your repo) that contains the deploy-ready
|
command = "rustup install nightly --profile minimal && cargo +nightly doc --all-features --no-deps && cp -r target/doc _netlify_out"
|
||||||
# HTML files and assets generated by the build. If a base directory has
|
environment = { RUSTDOCFLAGS= "--cfg docsrs" }
|
||||||
# been specified, include it in the publish directory path.
|
publish = "_netlify_out"
|
||||||
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]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/"
|
||||||
to = "/teloxide"
|
to = "/teloxide"
|
||||||
|
|
Loading…
Reference in a new issue