From fb896eb0869e1c0cc2bdd4152950ae7780cc0591 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sat, 21 Nov 2026 16:08:05 +0100 Subject: [PATCH] docs: French demo README, English version in demo/README.en.md Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6 --- README.en.md | 2 +- demo/README.en.md | 40 ++++++++++++++++++++++++++++++++++ demo/README.md | 55 +++++++++++++++++++++++++---------------------- 3 files changed, 70 insertions(+), 27 deletions(-) create mode 100644 demo/README.en.md diff --git a/README.en.md b/README.en.md index 4e368b1..3094901 100644 --- a/README.en.md +++ b/README.en.md @@ -9,7 +9,7 @@ This repository contains a collection of LXD profiles and network configurations - `profiles/`: Contains various LXD profile definitions categorized by their purpose (e.g., applications, networking, storage). - `network/`: Defines LXD network configurations. - `docs/`: Additional documentation and helper scripts. -- `demo/`: Animated demos of the mise tasks ([how they are made](demo/README.md)). +- `demo/`: Animated demos of the mise tasks ([how they are made](demo/README.en.md)). - `mise.toml`, `.mise/`: optional [mise](https://mise.jdx.dev) tasks to manage LXD profiles (`mise.demo.toml`: demo recording tools). ## Demo diff --git a/demo/README.en.md b/demo/README.en.md new file mode 100644 index 0000000..b250fad --- /dev/null +++ b/demo/README.en.md @@ -0,0 +1,40 @@ +# Demos + +🇫🇷 [Lire en français](README.md) + +The animations of the [README](../README.en.md) are recorded with +[autocast](https://github.com/k9withabone/autocast) from scenarios written in +YAML (`.yaml`): the commands really run in a bash shell and the +session is written as an [asciinema](https://asciinema.org) recording +(`.cast`), then rendered as a GIF with +[agg](https://github.com/asciinema/agg). + +The `.cast` files can be played in Gitea's file view (asciinema player). + +| Scenario | Demo | Prerequisites | +|---|---|---| +| `tour.yaml` | welcome message, `list`, `show`, `diff` (read only) | LXD | +| `lxc.yaml` | plain `lxc`, without mise: create a profile from its YAML file | LXD, profile `unattended-upgrades` not installed | +| `install.yaml` | `install`, diff and confirmation after a change in LXD, `import` | LXD, profile `unattended-upgrades` not installed | + +## Recording a demo + +The recording tools live in a separate mise environment (`mise.demo.toml`), so +they are only installed when making demos: + +```shell +MISE_ENV=demo mise run demo # demo/.cast and demo/.gif +``` + +`setup.sh` is the hidden preamble of every scenario (mise activated, `delta` as +git pager). `lxc.yaml` and `install.yaml` install the profile +`unattended-upgrades` in LXD (`install.yaml` also modifies it and imports it +into the repository); their hidden epilogue restores the repository file as it +was and deletes the profile. These scenarios refuse to start if that profile is +already installed. + +agg draws the text itself, with fonts installed by mise in the demo environment +(nothing is installed on the system, which can be headless): +[Inconsolata Nerd Font](https://www.nerdfonts.com) and +[Noto Color Emoji](https://github.com/googlefonts/noto-emoji), passed with +`--font-dir`. diff --git a/demo/README.md b/demo/README.md index bdb5cec..ed344fd 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,38 +1,41 @@ -# Demos +# Démos -The animations of the [README](../README.md) are recorded with -[autocast](https://github.com/k9withabone/autocast) from scenarios written in -YAML (`.yaml`): the commands really run in a bash shell and the -session is written as an [asciinema](https://asciinema.org) recording -(`.cast`), then rendered as a GIF with -[agg](https://github.com/asciinema/agg). +🇬🇧 [Read in English](README.en.md) -The `.cast` files can be played in Gitea's file view (asciinema player). +Les animations du [README](../README.md) sont enregistrées avec +[autocast](https://github.com/k9withabone/autocast) à partir de scénarios +écrits en YAML (`.yaml`) : les commandes sont réellement exécutées +dans un shell bash et la session est enregistrée au format +[asciinema](https://asciinema.org) (`.cast`), puis convertie en GIF +avec [agg](https://github.com/asciinema/agg). -| Scenario | Demo | Prerequisites | +Les fichiers `.cast` se lisent dans la vue fichier de Gitea (lecteur asciinema). + +| Scénario | Démo | Prérequis | |---|---|---| -| `tour.yaml` | welcome message, `list`, `show`, `diff` (read only) | LXD | -| `lxc.yaml` | plain `lxc`, without mise: create a profile from its YAML file | LXD, profile `unattended-upgrades` not installed | -| `install.yaml` | `install`, diff and confirmation after a change in LXD, `import` | LXD, profile `unattended-upgrades` not installed | +| `tour.yaml` | message d'accueil, `list`, `show`, `diff` (lecture seule) | LXD | +| `lxc.yaml` | `lxc` seul, sans mise : création d'un profil à partir de son fichier YAML | LXD, profil `unattended-upgrades` non installé | +| `install.yaml` | `install`, diff et confirmation après une modification dans LXD, `import` | LXD, profil `unattended-upgrades` non installé | -## Recording a demo +## Enregistrer une démo -The recording tools live in a separate mise environment (`mise.demo.toml`), so -they are only installed when making demos: +Les outils d'enregistrement sont déclarés dans un environnement mise à part +(`mise.demo.toml`) : ils ne sont installés que pour produire les démos. ```shell -MISE_ENV=demo mise run demo # demo/.cast and demo/.gif +MISE_ENV=demo mise run demo # demo/.cast et demo/.gif ``` -`setup.sh` is the hidden preamble of every scenario (mise activated, `delta` as -git pager). `lxc.yaml` and `install.yaml` install the profile -`unattended-upgrades` in LXD (`install.yaml` also modifies it and imports it -into the repository); their hidden epilogue restores the repository file as it -was and deletes the profile. These scenarios refuse to start if that profile is -already installed. +`setup.sh` est le préambule masqué de chaque scénario (mise activé, `delta` +comme pager de git). `lxc.yaml` et `install.yaml` installent le profil +`unattended-upgrades` dans LXD (`install.yaml` le modifie aussi et l'importe +dans le dépôt) ; leur épilogue masqué remet le fichier du dépôt dans son état +d'origine et supprime le profil. Ces scénarios refusent de démarrer si ce +profil est déjà installé. -agg draws the text itself, with fonts installed by mise in the demo environment -(nothing is installed on the system, which can be headless): -[Inconsolata Nerd Font](https://www.nerdfonts.com) and -[Noto Color Emoji](https://github.com/googlefonts/noto-emoji), passed with +agg dessine lui-même le texte, avec des polices installées par mise dans +l'environnement de démo (rien n'est installé sur le système, qui peut être +sans interface graphique) : +[Inconsolata Nerd Font](https://www.nerdfonts.com) et +[Noto Color Emoji](https://github.com/googlefonts/noto-emoji), passées avec `--font-dir`.