mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 09:42:57 +01:00
docs: local docs doc everything but only list workspace crates
This commit is contained in:
parent
4c4c279938
commit
cd301a6932
13
justfile
13
justfile
@ -68,8 +68,17 @@ test-coverage-lcov toolchain="": (test-coverage toolchain)
|
|||||||
cargo {{ toolchain }} llvm-cov report --doctests --lcov --output-path=lcov.info
|
cargo {{ toolchain }} llvm-cov report --doctests --lcov --output-path=lcov.info
|
||||||
|
|
||||||
# Document crates in workspace.
|
# Document crates in workspace.
|
||||||
doc *args:
|
doc *args: && doc-set-workspace-crates
|
||||||
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
|
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace {{ all_crate_features }} {{ args }}
|
||||||
|
|
||||||
|
[private]
|
||||||
|
doc-set-workspace-crates:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
(
|
||||||
|
echo "window.ALL_CRATES ="
|
||||||
|
cargo metadata --format-version=1 | jq '[.packages[] | select(.source == null) | .name]'
|
||||||
|
echo ";"
|
||||||
|
) > "$CARGO_TARGET_DIR/doc/crates.js"
|
||||||
|
|
||||||
# Document crates in workspace and watch for changes.
|
# Document crates in workspace and watch for changes.
|
||||||
doc-watch:
|
doc-watch:
|
||||||
|
Loading…
Reference in New Issue
Block a user