Sphinx: Remove package and module name for specific function

前端 未结 1 929
梦如初夏
梦如初夏 2021-01-22 06:06

My question is very similar to the one here: Remove package and module name from sphinx function

Is there a way to remove/hide package and module names in sphinx only fo

相关标签:
1条回答
  • 2021-01-22 07:01

    One option is to use reST markup for cross referencing syntax like so:

    If you prefix the content with ~, the link text will only be the last component of the target. For example,

    :py:meth:`~Queue.Queue.get`

    will refer to Queue.Queue.get but only display get as the link text.

    0 讨论(0)
提交回复
热议问题