Documentation style
How we write and illustrate the Tocharian AI documentation. Audience: anyone who writes or reviews docs, people and coding agents alike.
Philosophy
Section titled “Philosophy”Three sources, each for one layer:
| Layer | Source | What we take |
|---|---|---|
| Tone and choices | Apple Human Interface Guidelines: clarity, deference, depth | Result first, then how it works. Progressive disclosure: each level answers only what its reader needs now. Cut what does not help the reader. Show the interface instead of describing it. |
| Structure | Diátaxis: tutorials, how-to guides, reference, explanation | Each page has one purpose and never mixes the four. |
| Detail | Stripe’s developer documentation | Examples that run as written. Every option with its type and default. Error messages that lead to a fix. |
Apple’s restraint decides what we leave out; Diátaxis and Stripe make sure what stays is exact. Where they conflict, exactness wins in reference pages and restraint wins in the README and tutorials.
Structure
Section titled “Structure”README.md what it is, one picture, key features, supported versions, three-step quick start, editions, links, licenseCHANGELOG.mddocs/ getting-started.md tutorial: install, add a model, ask the first question user-guide.md how-to: conversations, evidence, background investigations, charts, data catalog and knowledge, confirming changes admin-guide.md how-to + reference: kibana.yml, privileges, models, masking, license, storage, audit dashboards, upgrade, uninstall security-privacy.md explanation: data flow, what the model sees, masking, privileges api.md reference: automation API, Workflows step page-awareness.md reference kibana-versions.md reference troubleshooting.md how-to: symptom → cause → fix development/ building, testing, releasing, this guide images/The README stays short: a reader decides in one screen whether the plugin is for them and how to start. Everything else is one link away.
Rules for every page
Section titled “Rules for every page”- One reader per page. Say at the top who it is for (user, administrator, developer).
- First sentence says what the reader gets, not how we built it.
- Titles are tasks or questions: “Mask sensitive fields”, not “Masking”.
- Short sentences, active voice, present tense. Second person for instructions.
- No “simply”, “just”, “easily”, “powerful”, “seamless”. Show it instead.
- One term per thing. Use the glossary below; never alternate synonyms.
- State limits plainly and close to the feature: prerequisites, editions, Kibana versions, what does not work.
- Only the current release. No roadmap, no promises, no internal history (earlier internal names and versions stay out of public docs).
- Examples run as written. Use Kibana’s sample data (
kibana_sample_data_logs,_flights,_ecommerce),localhost, and placeholders like<password>. Never a real host, IP address, customer, user name or key. In running text outside code, write a placeholder as<n>: GitHub drops a bare<n>as an unknown HTML tag. - Reference pages are complete and dry: every setting with type, default and effect; mirror the product’s own structure.
- English only, like the UI.
Glossary
Section titled “Glossary”| Term | Meaning | Not |
|---|---|---|
| dataset | a data stream, index, alias or index pattern the plugin profiles | source, table |
| profile | what the plugin knows about a dataset: purpose, fields, values, time range, sensitivity | schema |
| evidence | a query the answer relies on, with its hit count and results | proof, citation |
| knowledge | notes and field meanings people add | memory |
| investigation | a question run on the server, in the background or through the API | job, task |
| conversation | the questions and answers of one thread | chat session |
| masking | replacing sensitive values before the model sees them | redaction, anonymization |
| code name | a stable stand-in for a masked value, such as EMAIL_3fa2c1d0 | token, alias |
| read-write mode | proposals the user must confirm before anything changes | write mode |
Screenshots
Section titled “Screenshots”Where they come from
Section titled “Where they come from”tools/docs/screenshots.sh starts a temporary Elasticsearch and Kibana where the release check runs, installs the plugin, loads Kibana’s sample data, starts the built-in trial for the licensed features, and takes every picture with Playwright. Never take screenshots on a production or customer system. Re-run the script after any UI change; pictures are never edited by hand.
- Kibana 9.5.2 (Borealis theme). The docs note once that 8.x looks slightly different and works the same.
- Answers come from a real model so they read naturally; the key stays on the machine that runs the script.
Format
Section titled “Format”| Item | Rule |
|---|---|
| Window | 1440×900 CSS pixels, no browser chrome, Kibana at 100% |
| Pixel density | 2× (images are twice their display width) |
| Full-window shots | Only where the reader must see where they are: the README picture and up to three more |
| Cropped shots | Everything else: the flyout, a card, a settings block. At most 880 CSS pixels wide (GitHub’s text column), 24 px margin |
| Format | PNG, optimised, aim for 300 KB or less |
| Animation | One GIF for the README: 800 px wide, 10–12 fps, 15 s or less, 6 MB or less |
| Themes | Light and dark of every picture, shown with <picture> and prefers-color-scheme |
| Names | docs/images/<name>.light.png and <name>.dark.png, names from the shot list |
| Frames | No device frames, shadows or rounded corners |
| Annotations | Avoid. Explain in the text under the picture. If needed, numbered dots in one accent colour |
| Alt text | Every image: what it shows, in one sentence |
<picture> <source media="(prefers-color-scheme: dark)" srcset="docs/images/evidence.dark.png"> <img alt="An answer with its evidence: the ES|QL query, 1,284 hits and the result table" src="docs/images/evidence.light.png" width="880"></picture>Shot list
Section titled “Shot list”| # | Name | Topic | Used in |
|---|---|---|---|
| 1 | dashboard-flyout | Flyout on a dashboard: question, answer with evidence and a chart (also the GIF) | README |
| 2 | settings-model | Settings: add a model, connection works | getting-started |
| 3 | first-question | First question and answer in the app | getting-started |
| 4 | evidence | Evidence expanded: query, hits, table | user-guide |
| 5 | context-preview | What Tocharian AI sees | user-guide, security-privacy |
| 6 | dashboard-insights | Dashboard insights: spikes and drops | user-guide |
| 7 | answer-panel | Dashboard panel inside an answer, Open in Lens | user-guide |
| 8 | discover-tab | Discover document tab | user-guide |
| 9 | investigation-report | Background investigation report | user-guide |
| 10 | conversations | Conversations menu, edit and ask again | user-guide |
| 11 | dataset-profile | Dataset profile | user-guide |
| 12 | field-sensitivity | Field sensitivity | admin-guide |
| 13 | knowledge | Knowledge notes | user-guide |
| 14 | masking | Masking: code names to the model, real values to the user | security-privacy |
| 15 | confirm-dashboard | Confirmation card: dashboard preview | user-guide |
| 16 | confirm-case | Confirmation card: new case | user-guide |
| 17 | license | License block | admin-guide |
| 18 | audit-dashboards | Audit and usage dashboards | admin-guide |
| 19 | workflows-step | Workflows step (Kibana 9.5) | api |
| 20 | read-write | Read-write settings: roles and kinds of change | admin-guide |
Diagrams (data flow, where masking happens) are SVG that read in both themes, not screenshots.
Review checklist
Section titled “Review checklist”- The page has one Diátaxis type and says who it is for.
- The first paragraph tells the reader what they will get.
- Every command and request was run against the current release.
- Terms match the glossary.
- Limits, editions and versions are stated where they apply.
- No real host, address, user name, key or customer data in text or pictures.
- Pictures come from the script, in both themes, with alt text.
- Links work.