On Read the docs, autodoc does not work correctly with cython modules .
The solution is to produce the *.rst files of the API locally, and push these files to GitHub. This can be done by capturing the following sphinx events: autodoc-process-signature, autodoc-process-docstring.
However, these events are raised before the docstrings are parsed by the napoleon extension. The first step is therefore to get rid of napoleon and the Google style for docstring. I prefer a more verbose doc style anyway (like the Python standard library).
On Read the docs,
autodoc
does not work correctly withcython
modules .The solution is to produce the
*.rst
files of the API locally, and push these files to GitHub. This can be done by capturing the following sphinx events:autodoc-process-signature
,autodoc-process-docstring
.However, these events are raised before the docstrings are parsed by the napoleon extension. The first step is therefore to get rid of napoleon and the Google style for docstring. I prefer a more verbose doc style anyway (like the Python standard library).