2
我一直在寻找一个在stackoverflow和官方文档的答案,仍然无法找到解决方案。文件之间的狮身人面像链接功能
在主狮身人面像-DOC文档,我有:
Contents:
.. toctree::
views/index.rst
db/index.rst
在视图/ index.rst
.. py:currentmodule:: app.views
.. py:function:: create_user
this function uses create_user_db
和DB/index.rst
.. py:currentmodule:: app.db
.. py:function:: create_user_db
this function creates the user in database
我需要的是从create_user到exacly create_user_db所在的位置的超链接。
函数不是通过autodoc生成的,我不想为db/index中列出的每个函数使用sections和* .. _section_label:*。
它甚至可以链接它的方式,视图可以移动到db/index.html#app.db.create_user_db使用:doc :,:ref:或什么?
谢谢你,mzjn。这就是我需要的。 – Archarachne