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