ved*_*dar 5 restructuredtext python-sphinx
在http://sphinx-doc.org/latest/ext/intersphinx.html之后,我添加sphinx.ext.intersphinx到我的扩展中conf.py,然后我定义了到 Python 2.7 文档的映射:
intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None)}
Run Code Online (Sandbox Code Playgroud)
我在我的 reST 源中添加了这个参考:
:ref:`comparison manual <python:comparisons>`
Run Code Online (Sandbox Code Playgroud)
我还下载了https://docs.python.org/2.7/objects.inv,我将其解码为 reST,以确认 objects.inv 中存在比较标签:
:std:label:comparisons:
:Link: :std:label:`python:comparisons`
:Domain: Python
:Version: 2.7
:URL: reference/expressions.html#comparisons
:Title: Comparisons
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试构建文档时,我收到以下警告:
警告:未定义标签:python:comparisons(如果链接没有标题,则标签必须位于节标题之前)
我在构建 html 文件中没有得到任何链接。
我究竟做错了什么?
| 归档时间: |
|
| 查看次数: |
1621 次 |
| 最近记录: |