I am trying to get documentation on the readthedocs for my package epspy
(https://github.com/shikharmittal04/epspy.git). I can see all the sections on the documentation except for the API reference section, which is completely blank. Note that when I am working on my local PC I can see the API generated successfully.
I have only one module called meps.py in src/epspy
I followed the solution on https://github.com/readthedocs/readthedocs.org/issues/1139
I added the following set of code in my conf.py
def run_apidoc(_):
from sphinx.ext.apidoc import main
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
cur_dir = os.path.abspath(os.path.dirname(__file__))
module = os.path.join(cur_dir,"..","meps")
main(['-e', '-o', cur_dir, module, '--force'])
def setup(app):
app.connect('builder-inited', run_apidoc)
However, I am getting following the error:
python -m sphinx -T -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
Running Sphinx v7.1.2
making output directory... done
WARNING: html_static_path entry '_static' does not exist
/home/docs/checkouts/readthedocs.org/user_builds/epspy/checkouts/latest/meps is not a directory.
Any help on this?