diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst index db5d1e29b45..5f1bd233edf 100644 --- a/doc/_templates/autosummary/class.rst +++ b/doc/_templates/autosummary/class.rst @@ -24,7 +24,8 @@ {% endfor %} {% endif %} -.. include:: backreferences/{{ fullname }}.examples +.. minigallery:: {{ fullname }} + :add-heading: .. raw:: html diff --git a/doc/_templates/autosummary/function.rst b/doc/_templates/autosummary/function.rst index e4ae37539e8..98c403ac6f3 100644 --- a/doc/_templates/autosummary/function.rst +++ b/doc/_templates/autosummary/function.rst @@ -4,7 +4,8 @@ .. autofunction:: {{ objname }} -.. include:: backreferences/{{ fullname }}.examples +.. minigallery:: {{ fullname }} + :add-heading: .. raw:: html diff --git a/doc/_templates/autosummary/method.rst b/doc/_templates/autosummary/method.rst index 9c5d7313e32..76142fbb42e 100644 --- a/doc/_templates/autosummary/method.rst +++ b/doc/_templates/autosummary/method.rst @@ -4,7 +4,8 @@ .. automethod:: {{ objname }} -.. include:: backreferences/{{ fullname }}.examples +.. minigallery:: {{ fullname }} + :add-heading: .. raw:: html