#3974·anki

Sphinx API docs are empty

Author: keian-devCreated May 1, 2025Updated Sep 27, 2026

The python_sphinx target for ninja builds docs for aqt Python bindings only and they're mostly empty.

I'd like to add docstrings to the pylib and aqt classes and functions for easier-to-read auto-generated API docs generation using existing autoapi and Sphinx while adding sphinx.ext.napoleon and sphinx.ext.autodoc.typehints extensions.

The existing single-quote annotations on some functions help when working in the IDE but Sphinx doesn't generate docs from them. Also, not all functions or classes in the python bindings have annotations.

I already started working on this and have a couple functions "doc-stringed" in the decks.py file of pylib. Before I get too far, how would you prefer to break up docstring commits so that edits are manageable to review?