Skip to content

Commit a7c868c

Browse files
David Joslinclaude
andcommitted
Scaffold MkDocs knowledge base site
Sets up the structure and starter config for the club knowledge base: Material theme, GitHub Pages deploy workflow, docs folder layout for onboarding/meetings/ctf/tooling/infrastructure/playbooks/presentations, and LFS routing plus size-tiering guidance for large binaries. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEiphndgfXkcHqEQZDvruB
0 parents  commit a7c868c

17 files changed

Lines changed: 297 additions & 0 deletions

File tree

‎.gitattributes‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Route binary/office/archive formats through Git LFS.
2+
# Keep true multi-GB VM/disk images OUT of git entirely (see docs/infrastructure/vm-images) —
3+
# LFS is fine for slide decks and screenshots, not for disk images.
4+
*.pdf filter=lfs diff=lfs merge=lfs -text
5+
*.pptx filter=lfs diff=lfs merge=lfs -text
6+
*.ppt filter=lfs diff=lfs merge=lfs -text
7+
*.docx filter=lfs diff=lfs merge=lfs -text
8+
*.png filter=lfs diff=lfs merge=lfs -text
9+
*.jpg filter=lfs diff=lfs merge=lfs -text
10+
*.jpeg filter=lfs diff=lfs merge=lfs -text
11+
*.zip filter=lfs diff=lfs merge=lfs -text
12+
*.mp4 filter=lfs diff=lfs merge=lfs -text

‎.github/workflows/deploy.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy MkDocs site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
21+
- name: Install dependencies
22+
run: pip install -r requirements.txt
23+
24+
- name: Build and deploy
25+
run: mkdocs gh-deploy --force

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
site/
2+
.venv/
3+
__pycache__/
4+
*.pyc
5+
.DS_Store

‎README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# KUISC Knowledge Base
2+
3+
Source for the club's knowledge base site, built with [MkDocs Material](https://squidfunk.github.io/mkdocs-material/)
4+
and deployed to GitHub Pages on every push to `main`.
5+
6+
## Local development
7+
8+
```
9+
pip install -r requirements.txt
10+
mkdocs serve
11+
```
12+
13+
Then visit http://127.0.0.1:8000.
14+
15+
## Structure
16+
17+
See [docs/index.md](docs/index.md) for the content map and
18+
[docs/contributing.md](docs/contributing.md) for how to add pages and where
19+
large files (slides, PDFs, VM images) should go.
20+
21+
## Repo layout
22+
23+
```
24+
docs/ # site content (markdown)
25+
infra/terraform/ # actual Terraform for club-managed infra (not docs)
26+
infra/packer/ # VM image build definitions
27+
tools/ # custom club tooling (source), documented under docs/tooling
28+
mkdocs.yml # site config/nav
29+
.github/workflows/ # CI: builds and deploys the site via mkdocs gh-deploy
30+
```

‎docs/contributing.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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`).

‎docs/ctf/index.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CTF Writeups
2+
3+
Writeups organized by competition/event. Create a subfolder per event:
4+
5+
```
6+
ctf/
7+
2026-ccdc-regionals/
8+
index.md
9+
web-challenge-1.md
10+
2026-picoctf/
11+
index.md
12+
...
13+
```
14+
15+
Each writeup should cover: challenge description, approach, solution, and
16+
takeaways/lessons for next time.

‎docs/index.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# KUISC Knowledge Base
2+
3+
Welcome. This is the archive and reference site for KU Information Security Club:
4+
meeting notes, onboarding material, CTF writeups, internal tooling, infrastructure
5+
docs, playbooks, and past presentations.
6+
7+
## Where do I start?
8+
9+
- New member? Go to **[Onboarding](onboarding/index.md)**.
10+
- Looking for a past talk or slide deck? See **[Presentations](presentations/index.md)**.
11+
- Setting up a competition environment? See **[Infrastructure](infrastructure/index.md)**
12+
and **[Playbooks](playbooks/index.md)**.
13+
- Want to build/run a club tool? See **[Tooling](tooling/index.md)**.
14+
15+
## How this repo is organized
16+
17+
| Folder | What goes here |
18+
|---|---|
19+
| `onboarding/` | New-member guide, expectations, accounts to set up, gear to install |
20+
| `meetings/` | Per-meeting notes, agendas, recordings/links |
21+
| `ctf/` | Writeups from competitions, organized by event |
22+
| `tooling/` | Custom scripts/tools the club has built, with usage docs |
23+
| `infrastructure/` | Terraform for club infra, VM image docs and download links, network diagrams |
24+
| `playbooks/` | Step-by-step guides — e.g. "set up a CCDC scoring engine," "spin up a vuln box" |
25+
| `presentations/` | Slide decks and recordings from meetings/speakers |
26+
27+
See [Contributing](contributing.md) for how to add material.

‎docs/infrastructure/index.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Infrastructure
2+
3+
Overview of club-run infrastructure: what exists, where it runs, who has
4+
access, and how to rebuild it.
5+
6+
- [Terraform](terraform/index.md) — infra-as-code for anything we host
7+
- [VM Images](vm-images/index.md) — prebuilt images used for competitions/labs
8+
9+
Keep a current network/architecture diagram here once infra exists beyond
10+
the club website.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Terraform
2+
3+
Terraform configs for club-managed infrastructure live in
4+
`kuisc/knowledge-base` under `infra/terraform/` (actual `.tf` files, not
5+
docs — this page just explains what's there and how to use it) or in their
6+
own repo if large enough to warrant it.
7+
8+
Document per stack:
9+
10+
- What it provisions and why
11+
- Required provider credentials / how to get access
12+
- `terraform plan`/`apply` instructions
13+
- Teardown instructions (competition infra especially should be easy to tear down)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# VM Images
2+
3+
VM/disk images are too large for git. For each image, document rather than
4+
commit the binary:
5+
6+
| Image | Purpose | Build source | Download | Checksum |
7+
|---|---|---|---|---|
8+
| e.g. `ccdc-vuln-ubuntu-22.04` | Vulnerable box for CCDC practice | `infra/packer/ccdc-vuln-ubuntu/` | (bucket/NAS link) | `sha256:...` |
9+
10+
Prefer building images from a Packer/Terraform definition checked into this
11+
repo so the image itself is reproducible and disposable — store the
12+
*build recipe* in git, not the multi-GB artifact.

0 commit comments

Comments
 (0)