我确实了解如何在 Sphinx RST 中创建词汇表,以及如何链接到其术语:
.. glossary::
term1
description of term1
Linking to :term:`term1` is easy.
我的问题是,我如何链接到另一个 Sphinx 项目的词汇表中的术语,我有一个 intersphinx 定义?
例如,我对 Python 2 的 Sphinx 文档有一个 intersphinx 定义:
intersphinx_mapping = {
'py': ('https://docs.python.org/2/', None),
}
但是我没有成功地使用 RST 源代码中的任何这些结构来指定指向其中一个词汇表术语的链接:
:ref:`py:iterable`
:ref:`py:glossary.iterable`
:term:`py:iterable`
:term:`py:glossary.iterable`
这可能吗?如果是的话,术语表的定义需要看起来如何,以及对术语表术语的引用如何?