From af78e985f75d31ba99452bcbfa285f338b38486b Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 12 Oct 2017 22:58:28 -0400 Subject: [PATCH] DOC: tweak template to use automodule (not currentmodule) This ensure that the module gets created a link target added. The trick is tell `automodule` to not document members. This is slightly better than using the `module` directive as it at least pulls the docstring. --- doc/_templates/autofunctions.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/_templates/autofunctions.rst b/doc/_templates/autofunctions.rst index 2f687e253e55..942731b46587 100644 --- a/doc/_templates/autofunctions.rst +++ b/doc/_templates/autofunctions.rst @@ -2,7 +2,8 @@ {{ fullname | escape | underline }} -.. currentmodule:: {{ fullname }} +.. automodule:: {{ fullname }} + :no-members: {% block functions %} {% if functions %} @@ -10,7 +11,7 @@ Functions --------- -.. autosummary:: +.. autosummary:: :template: autosummary.rst :toctree: {% for item in functions %}{% if item not in ['plotting', 'colormaps'] %}