Skip to content

Commit b4509b2

Browse files
committed
adapt generate-config-docs.sh to work outside of workspace
1 parent 1f4f786 commit b4509b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/tools/config-docs-generator/generate-config-docs.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ main() {
5555
mkdir -p "$(dirname "$OUTPUT_FILE")"
5656
mkdir -p "$TEMP_DIR"
5757

58-
cd "$PROJECT_ROOT"
58+
# Move to the script's directory to build `config-docs-generator`
59+
cd "$SCRIPT_DIR"
5960

6061
# Step 1: Build the documentation generation tools
6162
if [[ "$SKIP_BUILD" != "true" ]]; then
@@ -74,6 +75,9 @@ main() {
7475
fi
7576
log_info "Structs to be documented: $TARGET_STRUCTS"
7677

78+
# Move to the project's workspace root to run the extract-docs binary
79+
cd "$PROJECT_ROOT"
80+
7781
"$EXTRACT_DOCS_BIN" \
7882
--package stackslib \
7983
--structs "$TARGET_STRUCTS" \

0 commit comments

Comments
 (0)