Skip to content

Commit b793d09

Browse files
committed
add flags to ignore items that are causing failures we don't care about
1 parent beb8e73 commit b793d09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ jobs:
127127
echo "[INFO] Validating built site with HTML Proofer..."
128128
ls -la
129129
htmlproofer --help
130-
htmlproofer ./build --ignore-empty-alt
130+
# Handle path prefix and ignore search template placeholders
131+
htmlproofer ./build \
132+
--ignore-empty-alt=true \
133+
--swap-urls "^/docs/:/" \
134+
--ignore-urls "/docs/_/,\[url\],\[path\]" \
135+
--ignore-status-codes "999"
131136
- notify_error:
132137
message: "Validation job failed for branch ${CIRCLE_BRANCH}"
133138

0 commit comments

Comments
 (0)