You can invoke the sphinx setup wizard with the sphinx-quickstart command (which becomes available when you install the sphinx package). Note that this command should be executed from within the directory where you want the documentation to be in.
These are some slides which explain a bit how to use it and what does the output mean. The insteresting part is from slide 48 to 55
You can take this configuration file as reference.
Remember to add sphinx.ext.autodoc extension so that sphinx is able to automatically extract documentation from our code.
If we will place the documentation in a docs folder in the root of the repository then we should also add these lines to the top of our config file so that the project (which is in the outer directory) can be imported by sphinx.
sphinx-quickstart
command (which becomes available when you install thesphinx
package). Note that this command should be executed from within the directory where you want the documentation to be in.sphinx.ext.autodoc
extension so that sphinx is able to automatically extract documentation from our code.docs
folder in the root of the repository then we should also add these lines to the top of our config file so that the project (which is in the outer directory) can be imported by sphinx.