Open stevenj opened 1 year ago
+1 I have the same issue. It's quite bad in the scenario that a Github CI workflow deployment depends on the right behavior of this option.
After a quick look at the code it looks like the add_invalid_link_diagnostics
function does not respect the warning_policy
, it always generates an error:
Potential solution is to follow the pattern from add_incomplete_link_diagnostics
instead: https://github.com/Michael-F-Bryan/mdbook-linkcheck/blob/dc22a02ba851ac3eed7d16a67aa1bcb4ed1b0321/src/validate.rs#L270
When I run mdbook build with linkcheck enabled and
warning-policy
set to "warn" it still errors and returns a 101 error code? How do I configure it to just warn?I know its picking up the
warning-policy
option because if I make it an invalid value mdbook-linkcheck complains.