This section will guide you through setting up your environment for local development.
Before proceeding, ensure your system meets the following requirements:
- Python: Version 3.8.1 or higher. Download Python
- Linux System (Recommended): While not mandatory, using a Linux system or the Windows Subsystem for Linux (WSL) simplifies library installation and allows for easier previews.
Install the required system libraries using the command below:
sudo apt install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev pngquant
Note: If not using a Debian-based system, similar packages should be available on other package managers (such as
pacman
) aswell.
- Create a Python virtual environment:
- In an empty folder, create a new virtual environment:
python -m venv \path\to\new\virtual\environment
- Activate the virtual environment:
- Windows:
path\to\venv\Scripts\activate.bat
. - Linux:
source path\to\venv\bin\activate
.
- Windows:
- In an empty folder, create a new virtual environment:
- Install the necessary Python libraries using the
requirements.txt
file:
pip install -r requirements.txt
Note: If you need to add a new python extension for some reason, remember to update the
.github/workflows/deploy.yml
file.
To serve the website locally, use the following command:
mkdocs serve
Note: If you wish to use a port or IP other than the default, specify it using the
-a
option:
mkdocs serve -a ip:port
To build a static website, use the following command:
mkdocs build