|
| 1 | +# Contributing to the Knowledge Base |
| 2 | + |
| 3 | +This site is generated from the `docs/` folder in this repo with |
| 4 | +[MkDocs Material](https://squidfunk.github.io/mkdocs-material/). Anyone in the |
| 5 | +org can edit it via a normal PR — GitHub Actions rebuilds and redeploys on |
| 6 | +merge to `main`. |
| 7 | + |
| 8 | +## Adding a page |
| 9 | + |
| 10 | +1. Create a `.md` file in the relevant folder (or a new folder if it's a new topic). |
| 11 | +2. If it's not auto-discovered, add it to the `nav:` block in `mkdocs.yml`. |
| 12 | +3. Open a PR. A preview isn't wired up yet — for local preview: |
| 13 | + ``` |
| 14 | + pip install -r requirements.txt |
| 15 | + mkdocs serve |
| 16 | + ``` |
| 17 | + |
| 18 | +## Adding large files (slides, PDFs, VM images, recordings) |
| 19 | + |
| 20 | +Git (even with LFS) is a poor place for anything much over ~50-100MB, and org |
| 21 | +storage quotas aren't infinite. Rule of thumb: |
| 22 | + |
| 23 | +- **Markdown, small images/diagrams, code, Terraform, PDFs under ~20MB** → commit |
| 24 | + directly to this repo. |
| 25 | +- **PowerPoints, large PDFs, zipped tool releases (20MB-2GB)** → attach as a |
| 26 | + [GitHub Release](https://github.com/kuisc/knowledge-base/releases) asset on this |
| 27 | + repo, then link to it from the relevant doc page. Tag releases by category, e.g. |
| 28 | + `presentations-2026-fall`, `ctf-vmimages-2026`. |
| 29 | +- **VM images / disk images (multi-GB)** → these don't belong in git at all. |
| 30 | + Host them externally (bucket, NAS, whatever the club settles on) and just |
| 31 | + document the download link + checksum + build instructions (ideally as |
| 32 | + Packer/Terraform so the image is reproducible and the binary itself is |
| 33 | + disposable). |
| 34 | + |
| 35 | +## Style |
| 36 | + |
| 37 | +- One topic per page. Prefer several short pages over one giant page. |
| 38 | +- Every folder should have an `index.md` that explains what's in it and links |
| 39 | + to its children — don't rely on the nav sidebar alone. |
| 40 | +- Date meeting notes and writeups (`YYYY-MM-DD-title.md`). |
0 commit comments