If I get the question right, you want a link from your documentation to the original source file. You can do this by adding the sphinx.ext.viewcode
extension to your conf file (under extensions entry). This will create a “source” link for every header of a class, method, function, etc. Clicking the link will open the original file highlighting the clicked item. More explanation here