Copy the docs/
folder in the root of your project. Remove _static/
content
(the folder should contains all the assets). Go to a virtual environment
(containing the current project preferably) and install the documentation
dependencies:
pip install -r docs/requirements.txt
sphinx-apidoc -f -o docs <package>
Clean the built .rst files (remove empty or unused sections and files).
Modify docs/index.rst
to add the pages to document.
You should also modify the homepage in this file.
Then, you can add new pages (in .rst or .md).
sphinx-build -b html docs/ docs/_build
Open docs/_build/index.html in your browser.