Skip to content

Documentation site in English and French - #449

Merged
mistraloz merged 6 commits into
thecodingmachine:v5from
mistraloz:docs/french-translation
Dec 5, 2026
Merged

mistraloz merged 6 commits into
thecodingmachine:v5from
mistraloz:docs/french-translation

Conversation

@mistraloz

@mistraloz mistraloz commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

The documentation site is now available in French. English stays the default: the English / Français switch in the header changes the language, and the menu, titles and descriptions follow it.

  • Markdown pages: the translation of each page is in docs/fr/, under the same file name (/fr/variants.html…). Its headings keep the English anchors (#ports, #built-in-apache…), so a link to a section works in both languages.
  • Interactive pages (tuning simulator, reverse proxy, debugging): one file holds both languages, French with #lang=fr. The generated configuration files get their comments in French; the keys and values do not change.
  • Not translated: environment variables, php.ini and Apache directives, code, commands, and the terms developers use as is (debugging, profiling, coverage, daemons, headers, logs, tuning, worker, reverse proxy…). The README, the licence, the changelog and MIGRATING.md stay in English only.

Design: the colors of TheCodingMachine (navy header, mint accents) and Open Sans, bundled with its licence. Every page shares the same frame, so the menu no longer moves between pages, and text pages get a narrower reading column. The home page lists the pages as cards. Three diagrams, in both languages: the slim / fat / node images, what runs when a container starts, and the UID of the docker user.

Images and README: the README no longer lists the ~100 images: it shows the main ones by use, recommends the slim image in production and links to a new Images page of the site. There, a picker builds the tag from the variant, the PHP version, slim or fat and NodeJS, with a Dockerfile, a compose.yml and a docker run command to copy. On the slim image, ARG NODE_VERSION installs any NodeJS version; on the fat image, a version without a -node tag (16, 18, 20) is installed from NodeSource by the Dockerfile (both checked with NodeJS 20). Below, every tag is copied in one click, and code blocks get a copy button. The page is generated from utils/images.blueprint.md (make blueprint) in both languages; GitHub renders it as docs/images.md, with the Dockerfile and compose.yml examples. The fpm notice at the top of the README becomes a "What's new": PHP 8.6, the debugging and profiling guide, the documentation site.

The contributing guide asks to update docs/fr/ along with an English page.

Checked with a GitHub Pages Jekyll build: links, anchors, lang of the pages, the language switch, and no JavaScript error on the interactive pages in either language.

@mistraloz
mistraloz force-pushed the docs/french-translation branch from 10dd205 to e170912 Compare December 4, 2026 22:07
English stays the default; a switch in the header opens the French version.

- Markdown pages: the French translation sits in docs/fr/ under the same name, with the
  English anchors kept on its headings so that the links to a section work in both languages.
- Interactive pages (tuning, reverse proxy, debugging): both languages in the same file,
  French with #lang=fr.
- The menu, the page titles and descriptions follow the language.

The README, the licence, the changelog and the other files of the repository stay in English.
Environment variables, directives, code and commands are not translated.
…design, home cards and diagrams

French keeps the terms developers use (debugging, profiling, coverage, daemons,
headers, logs, tuning). Every page shares the same frame so the menu no longer
moves, text pages get a reading column, dark code blocks, the TCM colors and
Open Sans (bundled with its license). Diagrams for the images, the container
startup and permissions, in English and French.
… documentation site

The README no longer lists every image: it gives the tag format and links to the
new Images page, generated from utils/images.blueprint.md in English and French,
which GitHub also renders. On the site, image tags and code blocks are copied in
one click. The notice announces PHP 8.6, the debugging and profiling guide and the
documentation site.
…slim recommended in production

The picker builds the tag from the variant, the PHP version, slim or fat and
NodeJS, with a Dockerfile, a compose.yml and a docker run command to copy. On the
slim image, the NODE_VERSION ARG installs any NodeJS version; on the fat image, a
version without a -node tag (16, 18, 20) is installed from NodeSource by the
Dockerfile. The page explains why the slim image suits production and shows the
Dockerfile and compose.yml examples on GitHub too. The README lists the main
images by use. The subtitles of the images diagram are readable in dark mode.
The README, the Images page and the picker take the version of orbit-images.yml,
now 8.6; the examples of the documentation pages, the diagrams and the
interactive pages use 8.6 as well.
@mistraloz
mistraloz force-pushed the docs/french-translation branch from 455cbb1 to df97de8 Compare December 5, 2026 09:55
@mistraloz
mistraloz merged commit 4e6c41a into thecodingmachine:v5 Dec 5, 2026
12 checks passed
@mistraloz
mistraloz deleted the docs/french-translation branch December 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant