Chilipp / autodocsumm

Extending your autodoc API docs with a summary
Apache License 2.0
48 stars 14 forks source link

get_documenters is deprecated in Sphinx 5 #56

Closed sneakers-the-rat closed 3 years ago

sneakers-the-rat commented 3 years ago

When using with Sphinx 4.0.2, I get plenty of deprecation warnings like this:

venv37/lib/python3.7/site-packages/autodocsumm/__init__.py:202: RemovedInSphinx50Warning: get_documenters() is deprecated.
  registry = get_documenters(self.env.app)

invoked here: https://github.com/Chilipp/autodocsumm/blob/3510543966a0c8e3102c4be312d9454f1bb5d410/autodocsumm/__init__.py#L202

the deprecated APIs page suggests sphinx.registry.documenters as the new API, looks like it's just a dictionary: https://github.com/sphinx-doc/sphinx/blob/2809b30c17a8fe362910f40b91fa2c17012d3ef1/sphinx/registry.py#L63

https://www.sphinx-doc.org/en/master/extdev/deprecated.html