I want to add a method reference of one module ( say module_2.py) to another method of another module ( say module_1.py). I want the link to work in Sphinx.
Let's pretend that:
module_1.py
class ABC:
def foo(self):
"""
See docstring of module_2.py bar():<link to bar() in module_2.py>
"""
print("foo")
module_2.py
class XYZ:
def bar(self):
"""
This function prints hello.
"""
print("hello")
user8215542
source
share