I am currently working on a cython project.
After following some tutorials, I was able to build in place
cython, then use sphinx build with the line
sys.path.insert(0, os.path.abspath('../../')) # path to my_package
in my conf.py to make it work.
Unfortunately, I need to delete this line to make it work with readthedocs as suggested here: how to document cython function on readthedocs.
My question is, what is the best practice to build documentation on read the docs and locally with the same code?
read-the-docs creates a venv, pip install requirements, install the cython project and then run sphinx-build
.
I would like to avoid doing the same locally because this is time consuming. Is there antoher way? Which one is the best practice?