Documentation setups
Vagrant
WSL
- Download the Cloud image
- Get the actual disk out of the image (extract rocky-8.5-docker.tar)
wsl --import <machine-name> <path-to-vm-dir> <path-to/rocky-8.5-docker.tar>wsl -d <machine-name>dnf -y updatednf -y install git python39-pippython3.9 -m pip install -U pipgit clone <path-to-git-project>cd <git-project-name>- Sometimes you will need to switch the branch here
python3.9 -m pip install -r requirements.txt- If you want to publish it somewhere else run
mkdocs buildand move thesitecontent to the correct destination - If you just want to look at the output run
mkdocs serve 2>&1 | tee ./mkdocs.serve.log
With WSL you can also startup this WSL after the first setup in VS Code to directly change stuff in the content, while the last line is running, and it will update automatically in the browser!