The website for deployKF.
- create a clean miniconda environment using
conda create -n mkdocs python==3.11
(or use your preferred python environment manager)- we highly recommend NOT using full Anaconda and instead using Miniforge or Mambaforge
- on macOS, you may install Mambaforge by running
brew install --cask mambaforge
and thenconda init "$(basename "${SHELL}")"
to addconda
to your shell
- activate your conda environment using
conda activate mkdocs
- install the python requirements using
pip install -r ./requirements.txt -r ./requirements-dev.txt
- install the MkDocs social plugin dependencies on your computer:
- macOS
- run
brew install cairo freetype libffi libjpeg libpng zlib
- you may need to run
export DYLD_FALLBACK_LIBRARY_PATH="$(brew --prefix)/lib"
for cairo to work - you can set
DYLD_FALLBACK_LIBRARY_PATH
permanently by adding the export to your~/.zshrc
file
- run
- Ubuntu
- run
apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
- run
- macOS
- serve a local version of the website using
mkdocs serve