- python -m venv venv
- .\venv\Scripts\activate
- pip install -r requirements.txt
- sphinx-quickstart docs
Separate source and build directories (y/n) [n]: Write “y” (without quotes) and press Enter.
Project name: Write “Lumache” (without quotes) and press Enter.
Author name(s): Write “Graziella” (without quotes) and press Enter.
Project release []: Write “0.1” (without quotes) and press Enter.
Project language [en]: Leave it empty (the default, English) and press Enter.
- Run docs: sphinx-build -M html docs/source/ docs/build/
- Open docs/build/html/index.html in browser
- To build docs:
- sphinx-build -M html docs/source/ docs/build/ or
- cd /docs
- make html
- change theme in conf.py (html_theme). You can add third-party theme like readthedocs but must pip install sphinx_rtd_theme
- Create new page in /docs/source/your_new_page.rst
- Add your page to toctree::