tambovtsev homework
Go to file
2023-09-29 07:18:26 +03:00
controls fix structure 2023-09-29 07:18:26 +03:00
docs homework done 2023-09-28 21:47:21 +03:00
.gitignore Add .gitignore 2023-09-19 13:59:40 +03:00
Licence.txt fix structure 2023-09-29 07:18:26 +03:00
pyproject.toml fix structure 2023-09-29 07:18:26 +03:00
README.md fix structure 2023-09-29 07:18:26 +03:00
requirements.txt fix structure 2023-09-29 07:18:26 +03:00

advanced-python-homework-2023

Materials

Controls (1st homework)

Venv creation:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Documentation

From scratch

  1. run sphinx initialization: sphinx-quickstart docs
  2. add project packages: sphinx-apidoc -o docs/source .
  3. 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',
]
  1. add modules after Contents: in index.rst

Build

  1. build docs sphinx-build -M html docs/source/ docs/build/
  2. docs are now in docs/build/html