docs(v1.1_100): conditional disabled variable with type web_address

This commit is contained in:
gwen 2026-05-18 17:55:43 +02:00
parent a2b02a8552
commit 8cc24d8ee4

View file

@ -3,7 +3,7 @@ Variable with multiple values
.. objectives:: Objectives
FIXME
After creating another variable for the needs of our use case, we will introduce the concept of multiple type variable.
.. prerequisites:: Prerequisites
@ -28,9 +28,9 @@ Variable with multiple values
A conditional disabled variable with type web_address
-------------------------------------------------------------
Fist we need to add a variable as part of our use case with a type we haven't used yet, the `web_address` type.
First we need to add a variable as part of our use case with a type we haven't used yet, the `web_address` type.
It is related to the automatic proxy configuration situation.
Let's put it a new :file:`firefox/30-auto.yml` :term:`structure file`.
Let's put it in the new :file:`firefox/30-auto.yml` :term:`structure file`.
Note that this variable has a :term:`disabled` property defined:
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_100/firefox/30-auto.yml
@ -53,4 +53,29 @@ Note that this variable has a :term:`disabled` property defined:
If the `proxy_mode` variable has the `"Automatic proxy configuration URL"` value, this `auto` variable is enabled.
It is :term:`disabled` otherwise.
Let's launch the Rougail CLI on this :term:`user data file <user data>`:
.. extinclude:: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_100/config/03/config.yml
:language: yaml
:caption: The :file:`config/03/config.yml` user data file
..
---
proxy_mode: Automatic proxy configuration URL
auto: https://auto.proxy.net/wpad.dat
we have this output:
.. raw:: html
:url: https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/commit/v1.1_100/config/03/output_ro.html
:class: output
..
╭────────────── Caption ───────────────╮
│ Variable Modified value │
│ (⏳ Original default value) │
╰──────────────────────────────────────╯
Variables:
┣━━ 📓 Configure Proxy Access to the Internet: Automatic proxy configuration URL ◀ loaded from the YAML file "config/03/config.yml" (⏳ No proxy)
┗━━ 📓 Automatic proxy configuration URL: https://auto.proxy.net/wpad.dat ◀ loaded from the YAML file "config/03/config.yml"