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:
parent
d8a86751f0
commit
c259e715f8
5
justfile
5
justfile
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user