From 28fe83cfb294fdea2be3d6542785e7a8c520d939 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 4 Feb 2025 21:52:54 +0100 Subject: [PATCH] css --- docs/_static/terminal.css | 2 +- docs/tutorial/preliminary.rst | 19 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/docs/_static/terminal.css b/docs/_static/terminal.css index a51b4c745..3561e702a 100644 --- a/docs/_static/terminal.css +++ b/docs/_static/terminal.css @@ -49,7 +49,7 @@ /* Styles communs pour les deux classes */ .error-box, .output { padding: 10px; /* Espace intérieur */ - font-size: 0.9em; /* Taille de police plus petite */ + font-size: 0.8em; /* Taille de police plus petite */ width: fit-content; /* Ajuste la largeur au contenu */ border-radius: 5px; /* Coins arrondis */ display: inline-block; /* Pour que la boîte s'ajuste au contenu */ diff --git a/docs/tutorial/preliminary.rst b/docs/tutorial/preliminary.rst index a825908e2..74a703585 100644 --- a/docs/tutorial/preliminary.rst +++ b/docs/tutorial/preliminary.rst @@ -106,10 +106,11 @@ We need a **default value**. So let's define a variable with a description -- **and a default value** - .. FIXME trouver une url qui corresponde à une valeur par défaut **dans le dictionnaire** .. code-block:: yaml + :caption: A rougail dictionnary file with a default value for the variable + :name: RougailDictionaryVariableDefault --- proxy_mode: @@ -117,15 +118,15 @@ So let's define a variable with a description -- **and a default value** default: No proxy - :ref:`Here is a Rougail variable with a default value ` - .. type-along:: how to set a value A default value has been set, great. Now how do I assign a value to a variable? -The integrator role +How to set a value ---------------------- +So far we have only talked about the one that writes the structure files. It is called the integrator. + .. glossary:: integrator @@ -138,11 +139,7 @@ The integrator role .. image:: images/integrator.png -.. important:: Note that there is a strong consistency, it means that the validation is done across - the entire structure, not only with a schema (type) validation system. - -The operator role ---------------------- +Now we will talk about the one that defines the values. It is called the operator. .. glossary:: @@ -151,8 +148,7 @@ The operator role An operator ih the Rougail logic is the person who gives :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 validated - by the :term:`structure file `. + The user :term:`value`\ s, that is the values that have been set by the operator, are of course type validated by the :term:`structure file definition `. .. image:: images/operator.png @@ -253,6 +249,7 @@ In our firefox use case, the real type of the `proxy_mode` variable is a `choice .. raw:: html :url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_013/config/01/output_ro.html :class: output + ..
╭────────────────────────── Caption ──────────────────────────╮
     │ Variable                           Default value