css
This commit is contained in:
parent
6edda03d79
commit
28fe83cfb2
2 changed files with 9 additions and 12 deletions
2
docs/_static/terminal.css
vendored
2
docs/_static/terminal.css
vendored
|
@ -49,7 +49,7 @@
|
||||||
/* Styles communs pour les deux classes */
|
/* Styles communs pour les deux classes */
|
||||||
.error-box, .output {
|
.error-box, .output {
|
||||||
padding: 10px; /* Espace intérieur */
|
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 */
|
width: fit-content; /* Ajuste la largeur au contenu */
|
||||||
border-radius: 5px; /* Coins arrondis */
|
border-radius: 5px; /* Coins arrondis */
|
||||||
display: inline-block; /* Pour que la boîte s'ajuste au contenu */
|
display: inline-block; /* Pour que la boîte s'ajuste au contenu */
|
||||||
|
|
|
@ -106,10 +106,11 @@ We need a **default value**.
|
||||||
|
|
||||||
So let's define a variable with a description -- **and 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**
|
.. FIXME trouver une url qui corresponde à une valeur par défaut **dans le dictionnaire**
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
:caption: A rougail dictionnary file with a default value for the variable
|
||||||
|
:name: RougailDictionaryVariableDefault
|
||||||
|
|
||||||
---
|
---
|
||||||
proxy_mode:
|
proxy_mode:
|
||||||
|
@ -117,15 +118,15 @@ So let's define a variable with a description -- **and a default value**
|
||||||
default: No proxy
|
default: No proxy
|
||||||
|
|
||||||
|
|
||||||
:ref:`Here is a Rougail variable with a default value <RougailDictionaryFirstVariableDefault>`
|
|
||||||
|
|
||||||
.. type-along:: how to set a 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?
|
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::
|
.. glossary::
|
||||||
|
|
||||||
integrator
|
integrator
|
||||||
|
@ -138,11 +139,7 @@ The integrator role
|
||||||
|
|
||||||
.. image:: images/integrator.png
|
.. image:: images/integrator.png
|
||||||
|
|
||||||
.. important:: Note that there is a strong consistency, it means that the validation is done across
|
Now we will talk about the one that defines the values. It is called the operator.
|
||||||
the entire structure, not only with a schema (type) validation system.
|
|
||||||
|
|
||||||
The operator role
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
.. glossary::
|
.. 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,
|
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.
|
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
|
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 <dictionary>`.
|
||||||
by the :term:`structure file <dictionary>`.
|
|
||||||
|
|
||||||
.. image:: images/operator.png
|
.. 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
|
.. raw:: html
|
||||||
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_013/config/01/output_ro.html
|
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_013/config/01/output_ro.html
|
||||||
:class: output
|
:class: output
|
||||||
|
|
||||||
..
|
..
|
||||||
<pre>╭────────────────────────── Caption ──────────────────────────╮
|
<pre>╭────────────────────────── Caption ──────────────────────────╮
|
||||||
│ Variable <span style="color: #ffd700">Default value</span> │
|
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||||
|
|
Loading…
Reference in a new issue