mkdocs icon indicating copy to clipboard operation
mkdocs copied to clipboard

strict mode returns exit code 0 with warnings

Open davidan01 opened this issue 1 year ago • 2 comments

I read some old issues and noticed that there was an intentional change to the strict mode where incorrect internal link warning is demoted to debug level. I understand the idea of it but it is quite inconvenient to validate mkdocs with incorrect internal links in strict mode. Is there an option to promote these kind of warnings through another option? Something like --log-level

davidan01 avatar Oct 05 '24 09:10 davidan01

+1 I want my CI build to fail if there are incorrect internal links, and to capture this with an exit code of 1.

Kurren123 avatar Nov 27 '24 14:11 Kurren123

Have you seen the validation docs? Isn't there one setting that would achieve what you want? absolute_links: warn / unrecognized_links: warn / nav: warn / links: warn

pawamoy avatar Nov 27 '24 17:11 pawamoy