Documentation
Content taken from PROJECT_CONTEXT.md §14, §15, §17 and §18 on 2026-10-03.
Language rule and translation rule formalised on 2026-10-09
(Issue hoggar/hoggar-docs#2). Multilingual portal decided on 2026-10-10
(decision).
Strategy
Hoggar applies Docs-as-Code: the Markdown in Git is the canonical source,
and the documentation serves humans as well as AI agents.
hoggar-docs contains the cross-cutting documentation and the governance
(Owner direction HD-003); its structure was approved by
Pending Decision 025.
The role of each repository is described in the
governance structure.
Portal
Docusaurus 3 publishes the portal on docs.hoggar.app (Mermaid, light and
dark mode, three languages: French, English and Arabic). Docusaurus is only the
presentation layer. Deployment is described in
Deployment and access protection in
Security.
Official language
Since 2026-10-05 (decision), the Hoggar documentation is written in French. On 2026-10-09, the Owner specified the scope below.
In French: all documentation intended for humans, in particular:
- governance, Decisions and Pending Decisions;
- architecture and ADRs;
- infrastructure, security and deployment;
- product documentation;
- documentation of the AI agents and the MCPs;
- workflows;
- the Spec Kit documentation specific to Hoggar and the readable content of the specifications;
- explanatory READMEs.
In English, when it is technically appropriate:
- code and identifiers (names of classes, functions, methods and variables);
- CLI commands;
- APIs and endpoints;
- configuration keys and environment variables;
- official names of technologies;
- file and folder names;
- branches, commit messages and commit types;
- standard technical terms, such as MR, MCP, API, SSH, CI/CD, OAuth and GitFlow.
Migration of existing pages: during Phases 1 to 4 of the migration plan, any document intended for humans that is modified is directly written in or translated into French. Phase 5 translates only the documents that will not have been touched.
Abbreviations are explained in the glossary.
Multilingual portal
Owner decision of 2026-10-10
(Multilingual portal).
Arabic was added on the Owner's instruction of 2026-10-10
(Issue hoggar/hoggar-docs#17).
| Language | Role | Files | URL |
|---|---|---|---|
| French | Canonical language, source of truth | docs/ | /fr/... |
| English | Translation | i18n/en/ | /en/... |
| Arabic | Translation, written right to left | i18n/ar/ | /ar/... |
- Each language has its URL prefix.
/redirects to/fr/. The old/docs/...URLs redirect to/fr/docs/.... - A page is written and modified first in French, in
docs/. Its translations have the same path underi18n/en/docusaurus-plugin-content-docs/current/andi18n/ar/docusaurus-plugin-content-docs/current/. - When a page has no translation in a language, that language displays the
page from
docs/with a visible indication. - The freshness of the translations will be checked by a fingerprint mechanism, which detects missing or obsolete translations. This mechanism is not yet implemented.
- Arabic (
/ar/) is written right to left; code, commands and diagrams remain left to right there.
The portal interface (navigation bar, footer, home page, category labels)
exists in French, in English and in Arabic. All the pages of docs/ are
written in French and have an English translation in i18n/en/ and an Arabic
translation in i18n/ar/.
Translation rule
A translation never modifies the meaning of a rule. More broadly, it never modifies the meaning of the canonical content (decision of 2026-10-10).
- For Decisions, Pending Decisions, permissions, security, human approvals and governance policies, the translation strictly preserves the meaning of the source text: same scope, same conditions, same prohibitions, same exceptions.
- When a translation touches one of these sensitive rules, the MR states it clearly (files and passages concerned), and a human validates that the meaning is unchanged before the merge.
- An MR whose only objective is translation contains no functional or governance change. A rule change goes through a separate MR.
- The source text remains available in the Git history.
- In case of doubt about the meaning of a passage, the translator (human or agent) stops and asks, instead of interpreting.
Future translation agent
A conceptual docs-translator agent will later be able to: detect the
modified pages and the missing or outdated translations, translate only what
has changed, preserve the Markdown, the code, the URLs and the technical
terminology, follow a Hoggar glossary, and open a Merge Request instead of
publishing directly. Human review remains mandatory. hoggar-ai mentions it
as a recognised future agent, without a definition.