# automc-tutorials Public-facing tutorials site for the automc Minecraft platform. Renders markdown from a mounted volume as a localized static-ish web app. No auth, no database, no state — exposed to the open internet behind TLS, hardened for zero-trust. ## Stack - **Go** + `net/http` + `html/template` — single binary - **goldmark** — markdown → HTML (GFM + footnotes + auto heading IDs) - **Plain CSS** — no framework, dark mode via `prefers-color-scheme` - **Vanilla JS** — ~70-line client-side substring search, no dependency - Content lives on a mounted volume; reload via SIGHUP ## Layout ``` cmd/automc-tutorials/main.go — entry: flags, signals, SIGHUP reload internal/content/ — loader + path-traversal guard for content///.md internal/render/ — goldmark wrapper (HTML escaping on) internal/server/ — mux, handlers, embedded templates + /static/ bundle content/// — markdown source. _index.md is the category landing page (optional). ``` ## Adding or editing a tutorial The image carries only the binary. Markdown sits on a volume mounted at `/content` (default in the image; override with `CONTENT_DIR`). Workflow: 1. Open an admin shell on the host that owns the PVC (or shell into a pod that mounts the same RWX volume). 2. Drop / edit `.md` files under `///`. 3. Add YAML frontmatter: ```yaml --- title: Page title summary: One-sentence preview shown on category list. order: 1 --- ``` 4. Write markdown. GFM tables, fenced code, footnotes, autolinks, task lists all work. Raw HTML in markdown is **escaped** — don't try to embed `