Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Netlify doc previews #4699

Merged
merged 15 commits into from
May 19, 2022
14 changes: 14 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[build]
command = """
rustup install nightly --profile minimal && cargo doc
davidbarsky marked this conversation as resolved.
Show resolved Hide resolved
"""
publish = "target/doc"

[build.environment]
RUSTDOCFLAGS="""
-D warnings \
davidbarsky marked this conversation as resolved.
Show resolved Hide resolved
--cfg docsrs \
davidbarsky marked this conversation as resolved.
Show resolved Hide resolved
--html-before-content /opt/build/repo/assets/warning.html \
--html-in-header /opt/build/repo/assets/noindex.html \
--extend-css /opt/build/repo/assets/warning.css \
davidbarsky marked this conversation as resolved.
Show resolved Hide resolved
"""
davidbarsky marked this conversation as resolved.
Show resolved Hide resolved