MeshCentral/docs/startdevmkdocsonwindows.ps1
Simon Smith 751f6a80e5
update docs script windows
Added installation commands for mkdocs-print-site-plugin and pymdown-extensions.
2025-10-24 23:25:10 +01:00

24 lines
755 B
PowerShell

# This is for running mkdocs locally on windows only.
# Make sure you change directory to your docs folder before starting this process
# Use the "Run Selection" in VSCode to run the code blocks as-needed
#Activate python
cd docs
python -m venv env
.\env\Scripts\activate
#Install requirements first time only
python -m pip install --upgrade pip #only 1st time or use periodically to update pip modules
pip install pytest #only 1st time
pip install mkdocs #only 1st time
pip install mkdocs-material #only 1st time
pip install mkdocs-print-site-plugin #only 1st time
pip install pymdown-extensions #only 1st time
#Run mkdocs and look at changes as you make them
start-process http://localhost:8010 #Opens Browser
mkdocs serve
#Stop python
deactivate