gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 03:59:52 25 4
gpt4 key购买 nike

我想链接到外部文件中的某个部分,但无法正常工作。 :ref:似乎无法在全局范围内工作,还是我使用错了?

..
File: some_file.rst

.. _ref_section:

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

Paragraph, foo bar lorem ipsum.
..
File: some_other_file.rst

.. seealso:: :ref:`ref_section`

如何交叉引用其他文件中的Sections?

最佳答案

关于Python-Sphinx:链接到外部文件中的节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8794088/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com