【发布时间】:2018-11-05 15:03:04
【问题描述】:
我正在尝试使用 sphinx 交叉引用和 intersphinx 来记录我的代码。我可以轻松地创建到其他文档的超链接,但是 Python 应该包含在核心中,并且它的常量值不会被检测到(True、False 和None)。
我导入了 interspinx,我的映射中有这个
intersphinx_mapping = {
"python": ("https://docs.python.org/3.6", None),
"discord": ("https://discordpy.readthedocs.io/en/rewrite/", None),
}
我可以通过这样做来引用不和谐
:class:`discord.Guild
我也可以参考 Python 文档,就像那样
:py:class:`str`
但是,如果我尝试引用 True 或 False,则无法正常工作。我正在这样做
:py:const:`True`
但文字不是超链接...
【问题讨论】:
标签: python-3.x python-sphinx restructuredtext