3.9.1.7. sphinx.ext.intersphinx.relative_path

sphinx.ext.intersphinx.relative_path(source, target)[source]

Build and return a path to target, relative to source (both files).

If there is no common prefix, return the absolute path to target.