Documentation of the SmartLock project
- Python3
- Python virtual environment (
python3-venv)
Starting from the root directory of the project, you have to install the virtual environment in order to build and serve the documentation. To do that, please install the virtual environment using
python3 -m venv venvpython.exe -m venv venvA directory called venv should be created in the current directory.
First of all, you have to activate the virtual environment. Please run
source venv/bin/activate.\venv\Scripts\activateOnce done, go ahead installing all the requirements with
pip install -r requirements.txtWhile the virtual environment is still active, serve the documentation running
mkdocs serveAn example of complete terminal flow should be very close to
/path/to/doc $ python3 -m venv venv
/path/to/doc $ source venv/bin/activate
(venv) /path/to/doc $ pip install -r requirements.txt
[...]
(venv) /path/to/doc $ mkdocs serve
INFO - Building documentation...
INFO - Cleaning site directory
INFO - The following pages exist in the docs directory, but are not included in the "nav" configuration:
- boards/amd-kria-kv260/testbench.md
INFO - Doc file 'boards/amd-kria-kv260/initial-setup-configuration.md' contains an absolute link '/hw-sw-requirements', it was left as is. Did you mean '../../hw-sw-requirements.md'?
INFO - Documentation built in 0.07 seconds
INFO - [15:18:43] Watching paths for changes: 'markdown', 'mkdocs.yaml'
INFO - [15:18:43] Serving on http://127.0.0.1:8000/At the address http://127.0.0.1:8000 you should find the documentation.