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
parent
3f87dc5b61
commit
577494616e
|
|
@ -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#./}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue