Python-Sphinx:外部文件中节的链接 [英] Python-Sphinx: Link to Section in external File
本文介绍了Python-Sphinx:外部文件中节的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想链接到外部文件中的分区,但无法使其工作。:ref:
似乎不能全局使用,或者我用错了?
..
File: some_file.rst
.. _ref_section:
Some Section
------------
Paragraph, foo bar lorem ipsum.
..
File: some_other_file.rst
.. seealso:: :ref:`ref_section`
如何交叉引用不同文件中的节?
推荐答案
了解一下Inter-Sphinx扩展: http://sphinx-doc.org/en/master/usage/extensions/intersphinx.html
这篇关于Python-Sphinx:外部文件中节的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文