diff --git a/doc/_templates/autosummary/function.rst b/doc/_templates/autosummary/function.rst index 6a6cfd4d443..e4ae37539e8 100644 --- a/doc/_templates/autosummary/function.rst +++ b/doc/_templates/autosummary/function.rst @@ -4,6 +4,7 @@ .. autofunction:: {{ objname }} +.. include:: backreferences/{{ fullname }}.examples .. raw:: html diff --git a/doc/_templates/autosummary/method.rst b/doc/_templates/autosummary/method.rst new file mode 100644 index 00000000000..9c5d7313e32 --- /dev/null +++ b/doc/_templates/autosummary/method.rst @@ -0,0 +1,11 @@ +{{ fullname | escape | underline }} + +.. currentmodule:: {{ module }} + +.. automethod:: {{ objname }} + +.. include:: backreferences/{{ fullname }}.examples + +.. raw:: html + +