I have a Python project with Sphinx documentation, and to keep the code repository small, some of the images and other files I want to include in the docs are in a separate repo.
For the Sphinx docs build, I do have a shell environment variable set to point to the other repo. I tried using it from an image directive like this:
.. image:: $OTHER_REPO/docs_images/image.png
but that doesn't work.
For now, I've put some code in docs/conf.py that copy over the files I need into the docs source tree, and then it works. But this feels like a hack, there must be a proper / better way to do this?