如何使用 sphinx 从模块的文档字符串中引用 *.rst 文件
How to reference an *.rst file from the docstring of a module using sphinx
我写了一个 rst
格式的小教程。现在对于 apidoc
生成的文档,我想在文档字符串中引用该教程使用:
:any:`<my_tut>`
其中 my_tut.rst
位于我的 Sphinx 文档源文件夹的顶级目录中。但是,我收到错误
WARNING: 'any' reference target not found: my_tut
添加信息:
apidoc
的输出不在顶层源文件夹中,而是在名为 code
的子文件夹中。
我写了一个 rst
格式的小教程。现在对于 apidoc
生成的文档,我想在文档字符串中引用该教程使用:
:any:`<my_tut>`
其中 my_tut.rst
位于我的 Sphinx 文档源文件夹的顶级目录中。但是,我收到错误
WARNING: 'any' reference target not found: my_tut
添加信息:
apidoc
的输出不在顶层源文件夹中,而是在名为 code
的子文件夹中。