From c259e715f838c68d39a2f8a8b56727f2cd669252 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 29 Jul 2024 21:48:36 +0100 Subject: [PATCH] chore: fix just doc --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 7984cb4f0..11625b5f9 100644 --- a/justfile +++ b/justfile @@ -67,13 +67,14 @@ test-docs: doc *args: && doc-set-workspace-crates RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace --all-features {{ args }} -[private] [group("docs")] +[private] doc-set-workspace-crates: #!/usr/bin/env bash ( 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 ";" ) > "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"