Fix publish_doc job not working
make docs
command does not work in the docs gitlab job.
As sphinx-build is a python script, may be we need to use this:
We need to use:
poetry run make docs
to avoid this error:
$ make docs
cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && make clean && make html && cd ..
rm: cannot remove 'duniterpy.*': No such file or directory
Creating file ./duniterpy.rst.
Creating file ./duniterpy.api.rst.
Creating file ./duniterpy.api.bma.rst.
Creating file ./duniterpy.api.elasticsearch.rst.
Creating file ./duniterpy.api.ws2p.rst.
Creating file ./duniterpy.documents.rst.
Creating file ./duniterpy.documents.ws2p.rst.
Creating file ./duniterpy.grammars.rst.
Creating file ./duniterpy.helpers.rst.
Creating file ./duniterpy.key.rst.
File ./modules.rst already exists, skipping.
make[1]: Entering directory '/builds/clients/python/duniterpy/docs'
Makefile:12: *** The 'sphinx-build' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the 'sphinx-build' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/. Stop.
make[1]: Leaving directory '/builds/clients/python/duniterpy/docs'
make: *** [Makefile:6: docs] Error 2
ERROR: Job failed: exit code 1