orzih/mkdocs-with-pdf

Declaring the with-pdf plugin fails if GObjects is not present

ddidier opened this issue · 1 comments

My use case is as follow:

  1. some users have an environment with GObjects (on Linux and on the CI) and want to generate the PDF
  2. some users have an environment without GObjects (on Windows, and they cannot install it even if it's possible) and don't need to generate the PDF

But as the title says, declaring the with-pdf plugin in the mkdocs.yml fails if GObjects is not present. So it would be great if the GObjects import was done only when the PDF is generated.

Thanks