Static site built with MkDocs + Material and published to GitHub Pages.
This repo is the source of truth for:
- how-tos
- references
- notes
- project write-ups
- screenshots and diagrams
py -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txtpython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtmkdocs serveBrowse to:
http://127.0.0.1:8000
These are separate on purpose.
Use this whenever you want to save and sync your markdown, images, and config.
git add .
git commit -m "add proxmox ceph notes"
git pushThis updates your source repo only.
Use this when you want the live site updated.
mkdocs gh-deployThis builds the static site and pushes the generated output to the gh-pages branch.
- Edit markdown in
docs/ - Add images under
docs/images/<topic>/ - Preview locally with
mkdocs serve - Run image compression before commit:
python scripts/compress-images.py- or
./scripts/compress-images.sh - or
./scripts/compress-images.ps1
- Commit and push source changes
- Run
mkdocs gh-deploywhen you want the live site updated
docs/_templates/post-template.mddocs/_templates/project-template.mddocs/_templates/how-to-template.md
Analytics is configured in mkdocs.yml with a placeholder:
extra:
analytics:
provider: google
property: G-XXXXXXXXXXReplace the value with your GA4 Measurement ID.
See:
docs/references/custom-domain-and-https.md
A reference workflow is included here but not enabled:
.github/workflows/deploy.yml.example
When you are ready to switch away from local gh-deploy, rename it to:
.github/workflows/deploy.yml
and then stop running mkdocs gh-deploy locally.