I have some code and data samples I copy to _static
directory and I would like to link to those files in documentation, something like:
.. _pca-run.py: _static/example.data
But the problem is that sphinx does not create a proper relative link to this file, but just copies the values as it is. So for nested files where _static
is not in the same directory links do not work.