`
-You have two way to define a variable's description:
+You have two way to define a variable's description:
- the verbose way:
.. code-block:: yaml
- proxy_mode:
+ proxy_mode:
description: Configure Proxy Access to the Internet
@@ -183,8 +184,8 @@ we have this output:
.. raw:: html
:class: output
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_002/config/01/output_rw.html
-
-..
+
+..
╭──────────────────── Caption ─────────────────────╮
│ Undocumented but modified variable Default value │
╰──────────────────────────────────────────────────╯
@@ -192,11 +193,11 @@ we have this output:
┗━━ 📓 Configure Proxy Access to the Internet: null
-We can see here that the variable's description string "Configure Proxy Access to the Internet" is used
+We can see here that the variable's description string "Configure Proxy Access to the Internet" is used
to refer to the `proxy_mode` variable.
.. note:: The description is used in UI tools and outputs instead of the variable name.
- The goal here is to provide an explanation of the variable for the user,
+ The goal here is to provide an explanation of the variable for the user,
not to show the technical name of the variable as defined by the :term:`integrator`.
Set a default value
@@ -208,16 +209,16 @@ Set a default value
git switch --detach v1.1_003
-We will learn different ways to set a value, the first way is setting a *default* value.
+We will learn different ways to set a value, the first way is setting a *default* value.
.. glossary::
default value
- A default value is a variable value that is predefined, that's why this value is placed
+ A default value is a variable value that is predefined, that's why this value is placed
right in the structure file.
-Let's add a default value to this `proxy_mode` variable.
+Let's add a default value to this `proxy_mode` variable.
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_003/firefox/00-proxy.yml
:language: yaml
@@ -236,7 +237,7 @@ The `proxy_mode` variable requires a value, that's why we have set a `No proxy`
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_003/config/01/output_ro.html
:class: output
-..
+..
╭─────── Caption ────────╮
│ Variable Default value │
╰────────────────────────╯
@@ -244,19 +245,16 @@ The `proxy_mode` variable requires a value, that's why we have set a `No proxy`
┗━━ 📓 Configure Proxy Access to the Internet: No proxy
-As we have set the `proxy_mode`'s value as `No proxy` by default,
+As we have set the `proxy_mode`'s value as `No proxy` by default,
The chosen value is indicated in the Rougail's CLI output as the default choice.
- here is the short-hand default setting and description:
-.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_003/firefox/00-proxy.yml
- :language: yaml
- :caption: The short-hand way of setting a default value and a description
+.. code-block:: yaml
-..
- proxy_mode: No proxy # Configure Proxy Access to the Internet
+ proxy_mode: No proxy # Configure Proxy Access to the Internet
-- and there is the verbose way of setting a default value:
+- and there is the verbose way of setting a default value:
.. code-block:: yaml
@@ -264,10 +262,10 @@ The chosen value is indicated in the Rougail's CLI output as the default choice.
description: Configure Proxy Access to the Internet
default: No proxy
-There are some other :term:`short-hand ways ` with Rougail that you may encounter
+There are some other :term:`short-hand ways ` with Rougail that you may encounter
as you read the Rougail's documentation and tutorial.
-.. admonition:: how to set a value -- the assignment
+.. admonition:: How to set a value -- the assignment
A default value has been set, great. This raises a question about what a normal value is.
@@ -275,7 +273,7 @@ as you read the Rougail's documentation and tutorial.
.. type-along:: The different Rougail roles and setting a variable's value
-So far we have only talked about the actor that writes the :term:`structure files `\ .
+So far we have only talked about the actor that writes the :term:`structure files `\ .
The one who writes the structure file plays the *role* of the *integrator*.
.. glossary::
@@ -297,26 +295,26 @@ Now we will talk about the one that defines the values. His role is called the o
An operator in the Rougail field is the person who assigns :term:`value`\ s to the pre-defined variables,
his responsabilities are to set variable values correctly.
- The user :term:`value`\ s, that is the values that have been set by the operator, are of course type validated.
+ The user :term:`value`\ s, that is the values that have been set by the operator, are of course type validated.
The type validation is driven by the definitions in the :term:`structure file `.
-It is the operator's responsibility to set the user datas variables values.
-The operator does not handle the structure files,
-he is responsible of other files called the :term:`user data files `.
+It is the operator's responsibility to set the user data variables values.
+The operator does not handle the structure files,
+he is responsible of other files called the :term:`user data files `.
.. glossary::
- user datas
+ user data
User datas, as opposed to structured datas, are datas that only concern the assignment of values
and not the consistency of the variables between them.
- The variable's values are also called **user values**.
+ The variable's values are also called **user values**.
- The consistency field is outside of the user datas scope.
+ The consistency field is outside of the user data scope.
The consistency is handled in the :term:`structured datas `\ 's scope.
-.. important:: For now, we don't know how to disable the default `mandatory` settings,
+.. important:: For now, we don't know how to disable the default `mandatory` settings,
so if neither a default value nor a user value are set for a given variable, Rougail will raise an error.
.. exercise:: Folder structure update
@@ -329,29 +327,29 @@ he is responsible of other files called the :term:`user data files `
-The operator needs to add the `-u yaml -yf config/config.yml` options to the Rougail CLI:
+The operator needs to add the `-u yaml -yf config/config.yml` options to the Rougail CLI:
.. raw:: html
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_003/config/02/cmd_ro.txt
:class: terminal
-..
+..
rougail -m firefox/ -u yaml -yf config/02/config.yml
which gives us this output:
@@ -360,7 +358,7 @@ which gives us this output:
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/v1.1_003/config/02/output_ro.html
:class: output
-..
+..
╭──────── Caption ────────╮
│ Variable Modified value │
╰─────────────────────────╯
@@ -368,24 +366,24 @@ which gives us this output:
┗━━ 📓 proxy_mode: No proxy ◀ loaded from the YAML file "config/02/config.yml"
-Now the `proxy_mode`'s new `No proxy` value is the same as the default value but we see in the Rougail CLI output that the value
+Now the `proxy_mode`'s new `No proxy` value is the same as the default value but we see in the Rougail CLI output that the value
comes from the :file:`config/02/config.yml` user data file. From now on this `proxy_mode` variable's value
is a user data value and not a default value (even if it's actually the same value).
-.. type-along:: structure values and user data values
+.. type-along:: Structure values and user data values
-We can see with the Rougail CLI utility where the values come from.
+We can see with the Rougail CLI utility where the values come from.
It can come from an integrator's setting or from an operator's setting.
.. admonition:: Reminder
- the integrator works on structure files, he can define default value for variables
- the operator works on user data files, he only can set user data values for variables
-
-Most of the time, the integrator and the operator are one and the same person,
-here we are talking about roles and not necessarily about people.
-.. type-along:: user data files are where the user values live
+Most of the time, the integrator and the operator are one and the same person,
+here we are talking about roles and not necessarily about people.
+
+.. type-along:: User data files are where the user values live
We need to set the values in separate files, called `user data files`.
@@ -393,19 +391,19 @@ We need to set the values in separate files, called `user data files`.
user data file
- A user data file is a file where only :term:`user datas` are set.
+ A user data file is a file where only :term:`user data` are set.
- A user file is a file where there are only user datas in it, users can set values, called user values --
+ A user file is a file where there are only user data in it, users can set values, called user values --
that is variable's values that have been set by an :term:`operator`\ .
- see also :term:`user datas`
+ see also :term:`user data`
.. glossary::
- configuration
+ configuration
We call configuration the whole system structure and user values,
- and when we speak of consistency, it is in relation to this whole set.
+ and when we speak of consistency, it is in relation to this whole set.
.. keypoints:: Key points progress
@@ -419,4 +417,3 @@ We need to set the values in separate files, called `user data files`.
- a variable's user value
- the :term:`integrator` and :term:`operator` roles
- a :term:`configuration`
-