When I run make html
with sphinx autodoc enabled, the functions' docstrings are not the actual docstrings.
I have the path configured in my conf.py file
import os
import sys
sys.path.insert(0, os.path.abspath("../../")) # Where the module is located
The output of autodoc:
The actual docstring:
Content of my .rst file:
Subreddit
=========================================
.. autoclass:: redditeasy.Subreddit
:members:
The output of autodoc is the outdated one. I changed the docstring multiple times but autodoc just kept using the old version.
I cleared cache and uninstalled autodoc multiple times but none of them did anything. Why does this happen? How can I update the docstrings?