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

Nik*_*s R 9 cross-reference python-sphinx

我想链接到外部文件中的一个部分,但我无法让它工作.这:ref:似乎不是全局的,或者我使用它错了吗?

..
    File: some_file.rst

.. _ref_section:

Some Section
------------

Paragraph, foo bar lorem ipsum.
Run Code Online (Sandbox Code Playgroud)


..
    File: some_other_file.rst

.. seealso:: :ref:`ref_section`
Run Code Online (Sandbox Code Playgroud)

如何从不同的文件交叉引用Sections?