Welcome
This documentation explains the whole Trinity Part One project: what it does, how it is built, and how it goes live. It is written for someone who arrives knowing nothing about it.
Suggested reading order
- The project on one page: the need and what we deliver.
- Overall architecture: the building blocks and how they talk.
- The Git repository: where things are, and how we work.
- The part that concerns you, always starting with its overview, then The basics.
If a word puzzles you, it is often underlined with dots: hover or click it to see its definition. They are all in the glossary.
The parts
| Part | Folder | Owner |
|---|---|---|
| Web front end | web/ | Jean-Baptiste |
| API | api/ | Patrice |
| DevOps | infra/, .gitlab-ci.yml | Elias |
Each part follows the same plan in the sidebar:
| Group | What you find there |
|---|---|
| Understand | The part's role, the tools explained, how to run it |
| Architecture | How the code is organised and why |
| Features | What the application does and its rules |
| In depth | The real code, extracted and explained piece by piece |
| Reference | Tables to look things up: variables, endpoints, versions |
| Contribute | A step-by-step tutorial and the conventions |
The DevOps part also has Building blocks (one tool per page), Operate (day-to-day work) and Decisions (choices and their limits).
How to read the diagrams
Diagrams are written in Mermaid. They always follow the same rules:
- An arrow
A --> Bmeans "A uses B" or "A sends to B". - A cylinder is a database or an external service (GitLab, Let's Encrypt…).
- The Expand button at the top right of a diagram opens it full screen: wheel or pinch to zoom, drag to move,
0to fit,Escto close.
Run the docs locally
The docs are a VitePress site (a site generator built from Markdown files) stored in docs/.
cd docs
npm ci
npm run dev # http://localhost:5173To build it as in production, in a Docker image served by nginx:
# from the repository root
docker build -f docs/Dockerfile -t trinity-docs .
docker run -p 8080:8080 trinity-docs # http://localhost:8080Team rule
Each part is written by its owner. A new route, column or variable is documented in the same merge request as the code.