From aa5678198a70e5a308b025ba6fb4dc503fdfe199 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sat, 10 Oct 2020 01:55:38 -0400 Subject: [PATCH] Add mini-galleries for methods and functions --- doc/_templates/autosummary/function.rst | 1 + doc/_templates/autosummary/method.rst | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 doc/_templates/autosummary/method.rst 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 + +