Material MkDocs on Windows#
For at least one of the Windows computers that I use, there's a bit of finesse required to get Material for MkDocs Insiders installed and behaving properly.
Install Python#
- Download Python for Windows from python.org - Python Releases for Windows.
- Run the installer, making sure to include in PATH.
Install Material for MkDocs Insiders#
- Grab the GitHub API key for the Insiders repo from 1Password, see Cloudflare Pages Environment Variables. Hang onto that for the next step.
- Run this command in Windows Terminal:
py -m pip install git+https://[email protected]/squidfunk/mkdocs-material-insiders.git mkdocs-git-revision-date-localized-plugin pip install mkdocs-awesome-pages-plugin
- Wait while everything installs.
To Do
Figure out env. variables on Windows, and save the GH_TOKEN_INSIDERS token as a variable, use that variable in the install command.
Serving in dev mode#
While working on docs, before committing and having Cloudflare Pages build and push everything, use mkdocs serve
to build and serve the docs locally.
- From Terminal in the docs location (you should see
mkdocs.yml
anddocs
), run: - Open
http://127.0.0.1:8000
to see the built site in all its glory!