We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa22b4 commit 4a906feCopy full SHA for 4a906fe
doc/generate-api-docs.sh
@@ -50,12 +50,15 @@ LIBS_SORTED=$(
50
)
51
52
for LIB in $LIBS_SORTED; do
53
+ echo ${LIB}
54
LIB_DIR=$(find . -maxdepth 2 -name ${LIB} -type d)
- cd ${LIB_DIR}
55
- ARGS=""
56
- if FEATURES="$(cargo read-manifest|jq -r '.metadata.docs.rs.features | join(",")' 2> /dev/null)"; then
57
- ARGS="--features $FEATURES"
+ if [[ -d "${LIB_DIR}" ]]; then
+ pushd ${LIB_DIR}
+ ARGS=""
58
+ if FEATURES="$(cargo read-manifest|jq -r '.metadata.docs.rs.features | join(",")' 2> /dev/null)"; then
59
+ ARGS="--features $FEATURES"
60
+ fi
61
+ cargo doc --no-deps --lib $ARGS
62
+ popd
63
fi
- cargo doc --no-deps --lib $ARGS
- cd -
64
done
0 commit comments