Sphinx docs / RST include file from dynamic path?
问题 I'm wondering if it's possible to use a dynamic path in a Sphinx and/or RST ..include:: directive? My reason for this is I have some developer documentation generated by Sphinx in one repo, but we have a bunch of unit tests in another repo that we want to include in the docs. If I know the path to the file in the other repo, it's pretty standard, like this: Some text in my RST file .. include:: ../path/to/other/repo/file.py :code: python Some more text The problem is the relative path to the