【发布时间】:2015-11-27 04:32:04
【问题描述】:
在 RST 语法中,您可以指定 :target: 属性来设置链接。我想将图像链接到“materials.rst”文档页面,其主要部分标题为“材料”
但这些都不能作为目标值:
:target: `materials`_:target: :doc: materials:target: materials
我怎样才能做到这一点?
【问题讨论】:
-
我还没有找到办法——我相信这是不可能的。 (同样,我看不到链接到 :ref: 的方法。)
-
:target: materials.html在您仅构建 html 文档时有效。
标签: image hyperlink python-sphinx restructuredtext