When I'm writing docstrings for my python packages, I just cannot make the functions appear in See Also
section linkable, especially for the functions that belongs to other modules, could some one help me to fix this issue, thanks!
BTW, I'm following the numpy docstring rules, and all the API docs is generated from sphinx-autogen
, below is a basic example:
In module mod1
:
def f_add(x, y):
"""Return sum of two input numbers.
Parameters
----------
x : float
First input number.
y : float
Second input number.
Returns
-------
s : float
Sum of two input numbers.
See Also
--------
f_mul : Multiply function.
"""
However f_mul
is in another module: mod2
, what is the right way to make f_mul
in See Also
of f_add
linkable?
Updated:
:func:`f_mul`
actually works, but not so neat in CLI.