From cb52c774be841a43eff3a68b9528835b8d60190d Mon Sep 17 00:00:00 2001 From: gwen Date: Sat, 22 Nov 2025 08:08:14 +0100 Subject: [PATCH] add modif --- docs/tutorial/preliminary.rst | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/tutorial/preliminary.rst b/docs/tutorial/preliminary.rst index 055c0945b..aa95c14a5 100644 --- a/docs/tutorial/preliminary.rst +++ b/docs/tutorial/preliminary.rst @@ -351,6 +351,45 @@ The constraints that come with the `choice` type We say that the `proxy_mode` variable is *constrained* (by the `choice` type). +.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_004/config/03/config.yml + :linenos: + :language: yaml + :caption: A user data specification + +:tutorial:`Download this file from the rougail-tutorials git repository ` + +If we run the rougail CLI with this user datas, we have: + +.. code-block:: text + :class: terminal + + rougail -m firefox -u yaml -ff config/03/config.yaml + +We have this output: + +.. raw:: html + :url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_004/config/03/output_ro.html + :class: output + +.. +
╭────────────── Caption ───────────────╮
+    │ Variable Modified value              │
+    │          (⏳ Original default value) │
+    ╰──────────────────────────────────────╯
+    Variables:
+    ┗━━ 📓 Configure Proxy Access to the Internet: Manual proxy configuration ◀ loaded from the YAML file "config/03/config.yml" (⏳ No proxy)
+    
+ +As we set the `proxy_mode` variable from a user data file, +we now have specified a value which is **not** a default value, +and the value appears in green, which means : "user data value". + +.. FIXME: verifier que cette sortie est bonne (on a des valeurs différentes) + +.. type-along:: The constraints that come with the `choice` property + +The `proxy_mode` variable's possible values is *constrained*. + We have the list of the possible (authorized) values: - `No proxy`