Skip to content

Commit cd12d01

Browse files
fix(ci): simplify htmlproofer command to use committed config
1 parent 2250c74 commit cd12d01

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ main() {
6161
-d "$SITE_DIR$_baseurl" -c "$_config"
6262

6363
# test
64-
# CORRECTED: Removing explicit flags to force HTMLProofer to use the
65-
# .htmlproofer.yml file for configuration (which contains disable_external: true).
66-
bundle exec htmlproofer "$SITE_DIR"
64+
# NOTE: Added ignore patterns for theme assets that may not be generated
65+
# by a simple 'jekyll build' or are root-relative scripts.
66+
bundle exec htmlproofer "$SITE_DIR" \
67+
--disable-external \
68+
--ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/,/assets\/js\/dist\/theme\.min\.js/,/app\.min\.js\?/"
6769
}
6870

6971
while (($#)); do

0 commit comments

Comments
 (0)