Skip to content

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 ​

  1. The project on one page: the need and what we deliver.
  2. Overall architecture: the building blocks and how they talk.
  3. The Git repository: where things are, and how we work.
  4. 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 ​

PartFolderOwner
Web front endweb/Jean-Baptiste
APIapi/Patrice
DevOpsinfra/, .gitlab-ci.ymlElias

Each part follows the same plan in the sidebar:

GroupWhat you find there
UnderstandThe part's role, the tools explained, how to run it
ArchitectureHow the code is organised and why
FeaturesWhat the application does and its rules
In depthThe real code, extracted and explained piece by piece
ReferenceTables to look things up: variables, endpoints, versions
ContributeA 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 --> B means "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, 0 to fit, Esc to close.

Run the docs locally ​

The docs are a VitePress site (a site generator built from Markdown files) stored in docs/.

sh
cd docs
npm ci
npm run dev        # http://localhost:5173

To build it as in production, in a Docker image served by nginx:

sh
# from the repository root
docker build -f docs/Dockerfile -t trinity-docs .
docker run -p 8080:8080 trinity-docs   # http://localhost:8080

Team rule

Each part is written by its owner. A new route, column or variable is documented in the same merge request as the code.