如何在编写重构文本时引用另一个文件的子标题

问题描述 投票:0回答:1

我的文件夹中有一个文件

/pages/architecture-deployment-guide.rst
这个文件有两个副标题:

View MAC Addresses of Each Container Interface

==============================================

View MAC Addresses of Each Bridge Interface

===========================================

我想在另一个名为

/pages/view-packet-captures.rst

的文件路径中引用这些副标题

我希望它位于注释中。

..  Note::

   Go to, "View Mac Addresses of Each Bridge Interface" and "View Mac Addresses of Each Container Interface" to confirm the MAC addresses of each device when analyzing the packet capture.

我该怎么办?网上看不到资源

documentation python-sphinx restructuredtext
1个回答
0
投票

我终于修好了。感谢@mzjn 的提示。

突出显示该子部分。

.. _view_mac_address_of_each_bridge_interface:

View MAC Addresses of Each Bridge Interface

===========================================


.. _view_mac_address_of_each_container_interface:

View MAC Addresses of Each Bridge Interface

===========================================

接下来,在注释中引用它。

..  Note::
   Go to, :ref:`view_mac_address_of_each_bridge_interface` and :ref:`view_mac_address_of_each_container_interface` to confirm the MAC addresses of each device when analyzing the packet capture.
© www.soinside.com 2019 - 2024. All rights reserved.