# Veritia — consolidated documentation

One browsable site gathering everything about the project: English **topic pages** that summarise and
cross-check all the documents, plus **every original source** (analysis, POC specs, testing guides, pitch
material, raw transcript, PDFs, decks) converted as-is, with status badges.

```bash
node documentation/build.mjs            # rebuild — zero dependencies, Node 18+
node documentation/build.mjs --strict   # exit 1 on any broken link or #anchor
```

Then open **`documentation/site/index.html`** in a browser (works from the file, no server needed).

**Offline reading** (phone, bus) — opt-in, per device: when served over http(s) (any static host, or locally with
`node documentation/build.mjs --serve`, http://localhost:8080), click **⤓ Save offline** in the top bar to keep a
copy on the device (~14 MB). After a redeploy only changed files are downloaded and the old copy is deleted;
click **✓ Offline ready** to remove it.
`documentation/site/` is self-contained (linked repo files are copied into `site/repo/`), so it can be uploaded as-is.

| Path | Role |
|---|---|
| `topics/*.md` | The English topic pages — **edit these** |
| `manifest.json` | Navigation groups, the list of source documents, their status and notes |
| `build.mjs` | The generator (Markdown → HTML, link/anchor checks, search index) |
| `assets/` | `style.css`, `app.js` (search, theme, diagrams), vendored Mermaid 12.4.0 (MIT) |
| `sw-template.js` | Offline mode (service worker) template — the build turns it into `site/sw.js` |
| `site/` | **Generated** — never edit by hand |

Maintenance guide: `topics/about-these-docs.md` (also the last page of the site).
