startdevmkdocsonwindows.ps1 755 B

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