You must ensure that there is a folder docs in your main folder. This folder docs must have:
- a Makefile
- a conf.py file
- an index.rst file
- 2 folders : _static and _template
- At the root folder
sphinx-apidoc lib/ -o docs/
This will generate the .rst files described in your index.rst - Go in your docs folder and
make html
to generate docs, that will be put in the _build/html folder. - Open the index.html to see generated doc.
If these files does not exist, you must run the following commands at the root path of your folder:
sphinx-quickstart
and follow the guidelines. You must answer yes when asked to generate doc from docstring.sphinx-apidoc lib/ -o docs/
This will generate the .rst files described in your index.rst- Go in your docs folder and
make html
to generate docs, that will be put in the _build/html folder. - Open the index.html to see generated doc.