ci: document dependencies

This commit is contained in:
naskya 2024-05-29 01:10:44 +09:00
parent 013d2e3424
commit 696475ccd5
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -286,7 +286,8 @@ cargo:doc:
- apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
script:
- cargo doc --no-deps --document-private-items
- cargo doc --document-private-items
- printf "window.ALL_CRATES = ['backend_rs', 'macro_rs'];" > target/doc/crates.js
- printf '<meta http-equiv="refresh" content="0; url=%s">' 'backend_rs' > target/doc/index.html
- cd target/doc
- npx --yes netlify-cli deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.