Skip to content

Commit

Permalink
chore: simplify Netlify config (#1541)
Browse files Browse the repository at this point in the history
Previously, the Netlify configuration copied the docs into a
`_netlify_out` dir as a workaround for netlify/build-image#505. This
upstream issue was fixed back in January, so this workaround hasn't been
necessary for a while. Therefore, we can remove this extra complexity
from our configuration.

I also changed the build script to a multi-line string which I think is
a bit nicer.
  • Loading branch information
hawkw committed Sep 11, 2021
1 parent 23f1508 commit d27d0b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[build]
command = "rustup install nightly --profile minimal && cargo doc --no-deps && cp -r target/doc _netlify_out"
environment = { RUSTDOCFLAGS= "--cfg docsrs -D warnings" }
publish = "_netlify_out"
command = """
rustup install nightly --profile minimal \
&& cargo doc --no-deps
"""
environment = { RUSTDOCFLAGS= "--cfg docsrs" }
publish = "target/doc"

[[redirects]]
from = "/"
Expand Down

0 comments on commit d27d0b3

Please sign in to comment.