// TL;DR
When the user types /doc, "documentation", or a similar word — create or update HTML documentation under E:\DOCUMENTATION. Read E:\DOCUMENTATION\readme.md first for context. Write so a developer who has never seen the project can find their way in 5 minutes.
Why the rule exists
Documentation that lives spread across three different formats (Markdown here, Confluence there, a Notion page somewhere) doesn't get maintained. When one person updates one place, the others don't know. E:\DOCUMENTATION is one canonical location. HTML is chosen because it can be opened without tooling and shared directly.
The label "junior-friendly" is forbidden: write for everyone. The level is chosen by the problem, not by an assumed audience.
Trigger words
- Trigger
/doc, "documentation", "doc that up", or similar — alone, not as part of a longer message.- Read first
E:\DOCUMENTATION\readme.md- Output
- HTML file(s) under
E:\DOCUMENTATION\<project>\ - Not
- Markdown, Word, plain text. HTML.
File structure
E:\DOCUMENTATION\ index.html ← landing page with cards for each project design-guide.md ← shared design guide <project>\ projekt-overblik.html ← main page for each project [more sub-topics if needed] <Project> (folder).lnk ← shortcut to project folder or solution file
What every project must have
- A subfolder under
E:\DOCUMENTATION\ - A
projekt-overblik.htmlin that subfolder - A card on
index.htmllinking to the overview - A
.lnkshortcut in the root pointing to the project folder or solution file
Writing style
- Danish as the primary language, English for code/CLI flags.
- Short sentences. Tables where they help.
- Concrete examples over abstract prose.
- Command examples as copy-pasteable
<pre>blocks. - Status indicators with emoji or pills: ✅ done · 🚧 in-progress · ⛔ blocked.
When documentation is required without a trigger
For projects that go into production (deployed to hosting or shipped with an InnoSetup installer): ask whether further detailed documentation is needed. Production without documentation is a risk — the next agent or developer must be able to take over.
The operations registry
E:\DOCUMENTATION\projects.json is an operations registry that's read live by an admin UI. Maintain it by:
- Writing through the REST API when the admin server is running (a mutex handles locking).
- Writing directly to the file only as a fallback if the server is down.
The detailed schema and contract are in E:\DOCUMENTATION\README.md. Don't break the contract — the UI breaks otherwise.