Skip to content

Commit 11fa17c

Browse files
committed
Doc-gen: support multi-level directory structure
1 parent 4e17fff commit 11fa17c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/generate-api-docs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -e
1+
#!/bin/bash -ex
22

33
cd "$(readlink -f "$(dirname "$0")/..")"
44

@@ -50,7 +50,8 @@ LIBS_SORTED=$(
5050
)
5151

5252
for LIB in $LIBS_SORTED; do
53-
cd $LIB
53+
LIB_DIR=$(find . -maxdepth 2 -name ${LIB} -type d)
54+
cd ${LIB_DIR}
5455
ARGS=""
5556
if FEATURES="$(cargo read-manifest|jq -r '.metadata.docs.rs.features | join(",")' 2> /dev/null)"; then
5657
ARGS="--features $FEATURES"

0 commit comments

Comments
 (0)