To build the website locally, first install the requirements in the requirements.txt file.
# Create venv
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtOnce the dependencies have been installed, you can build and serve the website locally by executing the following command:
# Serve at default address
mkdocs serve
# Specify own address
mkdocs serve -a localhost:9000If the website is built successfully, you should see something like this:
INFO - Building documentation...
INFO - Cleaning site directory
INFO - Documentation built in 0.16 seconds
INFO - [20:25:39] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO - [20:25:39] Serving on http://127.0.0.1:8000/Open the address in the last line in your browser and you will be able to view the website. Note that MkDocs supports live reloading, so any edits to the website will be re-built in real-time.