Go to file
2023-10-12 09:43:55 +03:00
controls first commit 2023-09-28 17:21:33 +03:00
devenv first commit 2023-09-28 17:21:33 +03:00
doc first commit 2023-09-28 17:21:33 +03:00
.gitignore Add .gitignore 2023-09-19 13:59:40 +03:00
LICENSE first commit 2023-09-28 17:21:33 +03:00
nano.2226.save first commit 2023-09-28 17:21:33 +03:00
README.md Обновить README.md 2023-10-12 09:43:55 +03:00
setup.py first commit 2023-09-28 17:21:33 +03:00

advanced-python-homework-2023

1. The sequence of commands to create the virtual enviroment:

sudo apt install python3.10-venv
cd advanced-python-homework-2023 
python3 -m vemv devenv
source devenv/bin/activate
python3 -m pip install sphinx
python3 -m pip install Pylint
python3 -m pip install MyPy
deactivate

2. The sequence of commands to create the automated sphinx documentation:

cd advanced-python-homework-2023
mkdir doc
cd doc
sphinx-quickstart
cd ..
sphinx-apidoc -o doc .
cd doc
rm modules.rst
rm setup.rst

Move controls.rst to the source.

cd source
vim conf.py

import os import sys

sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))

extensions = ['sphinx.ext.autodoc']

vim index.rst

./controls.rst

cd ..
make html

Open file://wsl.localhost/Ubuntu/home/zefirka/advanced-python-homework-2023/doc/build/html/index.html

Tadam