orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
325 stars 76 forks source link

error code !=0 returned if ENABLE_PDF_EXPORT not defined with scrict mode #99

Open anb0s opened 2 years ago

anb0s commented 2 years ago

We have shared configuration for mkdocs with and without PDF generate.

  1. build without PDF (ENABLE_PDF_EXPORT is not set) is executed with --strict mode
  2. build with PDF (ENABLE_PDF_EXPORT is set) is executed without --strict mode

the 1. returns message:

WARNING  -  without generate PDF(set environment variable ENABLE_PDF_EXPORT to 1 to enable)

but the returne code is not 0 and we cannot check if strict mode detected issues.

js94x commented 2 years ago

I experienced the same behaviour and created a PR to switch error level to info instead: #105

volks73 commented 1 year ago

I am experiencing the same behavior. Would it be possible to get #105 reviewed and merged? Is there a work around in the mean time?