ci: document dependencies

This commit is contained in:
naskya 2024-05-29 01:10:44 +09:00 committed by Eana Hufwe
parent db4e0e931b
commit 83a8ee25ca

View file

@ -285,7 +285,8 @@ cargo:doc:
- apt-get install -y --no-install-recommends build-essential clang mold nodejs npm - apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
- cp ci/cargo/config.toml /usr/local/cargo/config.toml - cp ci/cargo/config.toml /usr/local/cargo/config.toml
script: 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 - printf '<meta http-equiv="refresh" content="0; url=%s">' 'backend_rs' > target/doc/index.html
- cd target/doc - cd target/doc
- npx --yes netlify-cli deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=. - npx --yes netlify-cli deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.