modelmat / sphinxcontrib-drawio

Sphinx extension for including draw.io files.
MIT License
39 stars 17 forks source link

Sphinx's caching causes trouble with multiple builders #55

Closed brechtm closed 3 years ago

brechtm commented 3 years ago

Steps to reproduce:

I think the proper way to handle this would be to subclass ImageConverter and handle conversion as a post-transform. The drawio exporting should be moved from DrawIOBase to this new class. sphinx.ext.imgconverter is an example of how ImageConverter can be subclassed.

A workaround is to use separate doctrees directories for each builder.