Skip to content

Commit 13af5d0

Browse files
committed
Update comand line options for v4 updates
1 parent 5965a70 commit 13af5d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Rakefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,13 @@ end
113113

114114
task :validate_links => [:build] do
115115
# Explanation of arguments:
116-
# --assume-extension # Tells html-proofer that `.html` files can be accessed without the `.html` part in the url.
117-
# --disable-external # For speed. Ideally we'd check external links too, but ignoring for now.
118-
# --empty-alt-ignore # To avoid needing to fix lots upfront, we can migrate towards this later.
119-
# --allow-hash-href # Allow empty `#` links to mean "top of page". It's true that these can be errors, however we have far too many to really address this.
120-
# --url-swap # Adjust for Jekyll's baseurl. See https://github.com/gjtorikian/html-proofer/issues/618 for more.
121-
sh('bundle exec htmlproofer _site --assume-extension --disable-external --empty-alt-ignore --allow-hash-href --url-swap "^/docs/:/"')
116+
# --disable-external # For speed. Ideally we'd check external links too, but ignoring for now.
117+
# --ignore-missing-alt # To avoid needing to fix lots upfront, we can migrate towards this later.
118+
# --enforce-https # To avoid needing to fix lots upfront, we can migrate towards this later.
119+
# --allow-hash-href # Allow empty `#` links to mean "top of page". It's true that these can be errors, however we have far too many to really address this.
120+
# --allow-missing-href # Allow missing hrefs as we use them in the troubleshooter and rules (as anchors). It's true that these can be errors, however we have plenty which are legitimate.
121+
# --swap-urls # Adjust for Jekyll's baseurl. See https://github.com/gjtorikian/html-proofer/issues/618 for more.
122+
sh('bundle exec htmlproofer _site --disable-external true --ignore-missing-alt true --enforce-https false --allow-hash-href true --allow-missing-href true --swap-urls "^/docs/:/"')
122123
end
123124

124125
task :validate_sidebar_tree => [:build] do

0 commit comments

Comments
 (0)