Page MenuHomePhabricator

Remove sphinx.ext.napoleon due to RemovedInSphinx11Warning
Closed, ResolvedPublic

Description

Description

Pywikibot currently uses sphinx.ext.napoleon together with sphinx.ext.autodoc. With Sphinx 9.1 this combination produces several pages of RemovedInSphinx11Warning warnings.

See the upstream Sphinx issue:

https://github.com/sphinx-doc/sphinx/issues/14270

Napoleon is primarily needed to support Google-style docstrings, which Pywikibot does not use. There are only a few remaining constructs in the documentation that Napoleon currently formats specially, such as Example, Examples, Advice, Hints, and Rights sections.

Proposed solution

Remove sphinx.ext.napoleon from the Sphinx configuration and convert the remaining Napoleon-specific constructs to regular Sphinx/reStructuredText markup. The existing documentation should remain unchanged.

Event Timeline

Xqt triaged this task as Medium priority.

Change #1332482 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [docs] Remove sphinx.ext.napoleon due to RemovedInSphinx11Warning

https://gerrit.wikimedia.org/r/1332482

Change #1332482 merged by jenkins-bot:

[pywikibot/core@master] [docs] Remove sphinx.ext.napoleon due to RemovedInSphinx11Warning

https://gerrit.wikimedia.org/r/1332482