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 */
|
||||
.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 */
|
||||
|
|
|
@ -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 <RougailDictionaryFirstVariableDefault>`
|
||||
|
||||
.. 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 <dictionary>`.
|
||||
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>`.
|
||||
|
||||
.. 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
|
||||
|
||||
..
|
||||
<pre>╭────────────────────────── Caption ──────────────────────────╮
|
||||
│ Variable <span style="color: #ffd700">Default value</span> │
|
||||
|
|
Loading…
Reference in a new issue