1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

chore: fix just doc

This commit is contained in:
Rob Ede 2024-07-29 21:48:36 +01:00
parent d8a86751f0
commit c259e715f8
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -67,13 +67,14 @@ test-docs:
doc *args: && doc-set-workspace-crates doc *args: && doc-set-workspace-crates
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace --all-features {{ args }} RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace --all-features {{ args }}
[private]
[group("docs")] [group("docs")]
[private]
doc-set-workspace-crates: doc-set-workspace-crates:
#!/usr/bin/env bash #!/usr/bin/env bash
( (
echo "window.ALL_CRATES =" echo "window.ALL_CRATES ="
cargo metadata --format-version=1 | jq '[.packages[] | select(.source == null) | .name]' cargo metadata --format-version=1 \
| jq '[.packages[] | select(.source == null) | .targets | map(select(.doc) | .name)] | flatten'
echo ";" echo ";"
) > "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js" ) > "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"