Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use app.registry.documenters rather than get_documenters(app) #57

Merged
merged 1 commit into from
Jun 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions autodocsumm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
DocumenterBridge
)

from sphinx.ext.autodoc import get_documenters

try:
from sphinx.util.inspect import signature, stringify_signature
except ImportError:
Expand Down Expand Up @@ -199,7 +197,7 @@ def get_grouped_documenters(self, all_members=False):

# document non-skipped members
memberdocumenters = []
registry = get_documenters(self.env.app)
registry = self.env.app.registry.documenters

for (mname, member, isattr) in self.filter_members(members, want_all):
classes = [cls for cls in registry.values()
Expand Down Expand Up @@ -604,7 +602,7 @@ def setup(app):
if option not in AUTODOC_DEFAULT_OPTIONS])

# make sure to allow inheritance when registering new documenters
registry = get_documenters(app)
registry = app.registry.documenters
for cls in [AutoSummClassDocumenter, AutoSummModuleDocumenter,
CallableAttributeDocumenter, NoDataDataDocumenter,
NoDataAttributeDocumenter]:
Expand Down