numpydoc is a tool that translates a docstring to rst for sphinx. It has a few global options you can set. One of these, numpy_xref_aliases let's you specify mappings from "types" specified in docstrings to interlink entries.
This is useful for making terms like dataframe below linkable:
def f(x):
"""
Parameters
------------
x: dataframe
Some data
In this case we could use the mapping "dataframe": "pandas.DataFrame".
numpydoc is a tool that translates a docstring to rst for sphinx. It has a few global options you can set. One of these,
numpy_xref_aliases
let's you specify mappings from "types" specified in docstrings to interlink entries.This is useful for making terms like
dataframe
below linkable:In this case we could use the mapping
"dataframe": "pandas.DataFrame"
.See
https://github.com/has2k1/plotnine/blob/main/doc/conf.py#L442