Python Sphinx:链接到外部文件中的Section



我想链接到外部文件中的一个部分,但我无法使其工作。:ref:似乎不能在全球范围内工作,或者我用错了它?

..
    File: some_file.rst
.. _ref_section:
Some Section
------------
Paragraph, foo bar lorem ipsum.


..
    File: some_other_file.rst
.. seealso:: :ref:`ref_section`

如何交叉引用不同文件中的节?

看看狮身人面像的扩展:http://sphinx-doc.org/en/master/usage/extensions/intersphinx.html

最新更新