按照在包之间设置Sphinx文档链接的文档,我添加了
intersphinx_mapping = {'python': ('http://docs.python.org/2', None),
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
'matplotlib': ('http://matplotlib.sourceforge.net/', None)}
到我的conf.py
,但似乎不能链接到除Python本身以外的任何项目才能工作。例如
:term:`svg graphics <matplotlib:svg>`
只是把我带到索引页,没有添加预期的#term-svg
锚点,我甚至找不到scipy
的词汇表,也找不出如何确定包支持哪些:ref:
或:term:
。
在哪里可以找到有关如何在numpy
、scipy
和matplotlib
中为:ref:
和:term:
指定目标的说明
那么,我如何链接到Sphinx本身呢?添加
intersphinx_mapping['sphinx'] = ('http://sphinx-doc.org/', None)
和
:ref:`Intersphinx <intersphinx>`
不起作用。
https://stackoverflow.com/questions/21538983
复制相似问题