我有一個Python模塊,my_module.py,看起來像這樣: import numpy
class A(numpy.ndarray):
""" Extension for illustration. """
pass
class B:
""" My base class. """
def x():
""" Does the thing.
格式化我有以下類: class A:
def x():
""" Do the thing. """
class B(A):
def x():
"""
Do the thing, but better than the :py:meth:`parent <A.x>`
"""
整個模塊是autodoc編輯。我希望鏈接到父代實現x
有問題的文件代碼是一個方法的開頭: """
Gtk.EventBox::button-release-event signal handler.
:param widget: The clicked widget (The Gtk.EventBox).
:param event: Gdk.EventButton object with information regarding
所以我正在爲我的庫編寫PHP文檔。 我使用「sphinxcontrib.phpdomain」擴展名來支持PHP域。 比方說,我已經定義了下列文件: .. toctree::
:numbered:
:maxdepth: 3
:caption: Couch
.. php:class:: Couch
This is the low-level class t