fix(api-docs): exclude root .config.yml from Redoc HTML generation

The find command in generate-api-docs.sh matched the Redocly root
config (api-docs/.config.yml) which has no apis key, causing yq to
fail with "cannot get keys of \!\!null".
pull/6942/head
Jason Stirnaman 2026-03-11 17:27:46 -05:00
parent 3f87dc5b61
commit 577494616e
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ echo "Step 2: Generating Redoc HTML"
echo "========================================"
# Iterate product directories that contain a .config.yml.
for configPath in $(find . -name '.config.yml' -not -path '*/node_modules/*' -not -path '*/openapi/*'); do
for configPath in $(find . -name '.config.yml' -not -path './.config.yml' -not -path '*/node_modules/*' -not -path '*/openapi/*'); do
productDir=$(dirname "$configPath")
# Strip leading ./
productDir="${productDir#./}"