Open nicph opened 3 years ago
Currently, sphinx-multiversion passes as source-path argument an absolute path to source in the temporary clone dir.
That prevents extensions like sphinxcontrib-kroki to work properly. Here is an example of the issue we can get (shortenized for readability):
/var/.../source/index.rst:: WARNING: image file not readable: ../../../Users/nicph/sphinx-multiversion-fix/build/html/master/_images/kroki-e50a2bef1e2382a2e13a968ad2866a7485b1257b.svg
This behaviour has been introduced in 537cb23438ab3ee218d85995a646bbccf71c24d4, when sphinx was not run in a subprocess.
Now that sphinx is run in its own subprocess (since 427ed2344509b8f1468606144eb953451d0f67ac), the absolute path no longer seems necessary.
Currently, sphinx-multiversion passes as source-path argument an absolute path to source in the temporary clone dir.
That prevents extensions like sphinxcontrib-kroki to work properly. Here is an example of the issue we can get (shortenized for readability):
This behaviour has been introduced in 537cb23438ab3ee218d85995a646bbccf71c24d4, when sphinx was not run in a subprocess.
Now that sphinx is run in its own subprocess (since 427ed2344509b8f1468606144eb953451d0f67ac), the absolute path no longer seems necessary.