forked from Advanced_Python/advanced-python-homework-2023
569 B
569 B
Controls
Venv creation:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Documentation
- run sphinx initialization:
sphinx-quickstart docs
- add project packages:
sphinx-apidoc -o docs/source .
- edit
conf.py
import sys
import os
sys.path.insert(0, os.path.abspath("../../"))
extensions = [
'sphinx.ext.duration',
'sphinx.ext.doctest',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
]
- build docs
sphinx-build -M html docs/source/ docs/build/
- docs are now in
docs/build/html