diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst index cda380f316a..57a35f189a2 100644 --- a/doc/_templates/autosummary/class.rst +++ b/doc/_templates/autosummary/class.rst @@ -17,6 +17,7 @@ .. rubric:: Methods Summary .. autosummary:: + :toctree: {% for item in methods %} {% if item != '__init__' %} {{ objname }}.{{ item }} diff --git a/doc/_templates/autosummary/module.rst b/doc/_templates/autosummary/module.rst index 0ed058ff1a5..96c01c999b5 100644 --- a/doc/_templates/autosummary/module.rst +++ b/doc/_templates/autosummary/module.rst @@ -16,7 +16,7 @@ .. rubric:: Classes .. autosummary:: - :toctree: ./ + :toctree: {% for item in classes %} {{ item }} {% endfor %} @@ -29,7 +29,7 @@ .. rubric:: Functions .. autosummary:: - :toctree: ./ + :toctree: {% for item in functions %} {{ item }} {% endfor %} @@ -42,7 +42,7 @@ .. rubric:: Exceptions .. autosummary:: - :toctree: ./ + :toctree: {% for item in exceptions %} {{ item }} {% endfor %}