From cd8f3a7782ee17b2629a5ba1ec306913068b7a28 Mon Sep 17 00:00:00 2001 From: Junyeong Yim Date: Thu, 5 Jan 2023 00:32:37 +0900 Subject: [PATCH] Fix HTMLProofer Options Detail ====== - Some links open well when accessed in a browser, but show as 403 in HTMLProofer (#11) - `accept_encoding: "gzip,deflate,br"` - for `docs.github.com` - `ignore_status_codes: [403]`` - for `mvnrepository.com` --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 3c871f6..5df8ce4 100644 --- a/Rakefile +++ b/Rakefile @@ -93,9 +93,11 @@ module BookGenerator puts " -- Validate HTML file progit.html" HTMLProofer.check_file("progit.html", { typhoeus: { + accept_encoding: "gzip,deflate,br", ssl_verifypeer: false, ssl_verifyhost: 0}, - enforce_https: false + enforce_https: false, + ignore_status_codes: [403] }).run puts "Converting to EPub..."