Skip to content

Commit a432fbc

Browse files
fix(ci): simplify htmlproofer command to use committed config
1 parent 42f1f30 commit a432fbc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/test.sh

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

6363
# test
64-
# FINAL FIX: Consolidating the command to a single line to prevent shell parsing errors
65-
# from the multi-line backslash (\) continuation. This should force the flags to be
66-
# correctly passed to htmlproofer.
67-
bundle exec htmlproofer "$SITE_DIR" --disable-external --ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/,/assets\/js\/dist\/theme\.min\.js/,/app\.min\.js\?/"
64+
# FORCE FIX: We explicitly pass '--disable-external true' because the config file
65+
# is being ignored in CI. We also pass the regex ignores for local IPs and theme scripts.
66+
bundle exec htmlproofer "$SITE_DIR" --disable-external true --ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/,/assets\/js\/dist\/theme\.min\.js/,/app\.min\.js\?/"
6867
}
6968

7069
while (($#)); do

0 commit comments

Comments
 (0)