[tutorial v1.1_024)] A variable with type's parameters (config and doc)
This commit is contained in:
parent
68883b1638
commit
27a39b542c
1 changed files with 22 additions and 20 deletions
42
README.md
42
README.md
|
|
@ -1,9 +1,9 @@
|
|||
- [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md)
|
||||
- [[tutorial v1.1_022] Putting a variable inside of a family or a sub family](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_022/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_022~1..v1.1_022))
|
||||
- [[tutorial v1.1_023] A variable with type "domainname"](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_023/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_023~1..v1.1_023))
|
||||
|
||||
# [tutorial v1.1_023)] A variable with type "domainname"
|
||||
# [tutorial v1.1_024)] A variable with type's parameters
|
||||
|
||||
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_023~1..v1.1_023)
|
||||
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_024~1..v1.1_024)
|
||||
|
||||
|
||||
## Screenshot
|
||||
|
|
@ -50,13 +50,15 @@ manual: # Manual proxy configuration
|
|||
address:
|
||||
description: HTTP address
|
||||
type: domainname
|
||||
params:
|
||||
allow_ip: true
|
||||
...
|
||||
|
||||
```
|
||||
### Let's generate the documentation
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -o doc
|
||||
```
|
||||
| Variable | Description |
|
||||
|
|
@ -77,19 +79,19 @@ foo@bar:~$ rougail -m firefox/ -o doc
|
|||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address. |
|
||||
| **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address.<br/>**Validator**: the domain name can be an IP |
|
||||
|
||||
### Let's generate the changelog
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog
|
||||
```
|
||||
#### Modified variable
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **manual.http_proxy.address**<br/>~~`string`~~ [<ins>`domainname`</ins>](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address. |
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **manual.http_proxy.address**<br/>[`domainname`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | HTTP address.<br/>**Validator**: <ins>the domain name can be an IP</ins> |
|
||||
|
||||
|
||||
## User datas
|
||||
|
|
@ -106,7 +108,7 @@ foo@bar:~$ rougail -m firefox/ -o doc --doc.contents changelog
|
|||
#### Output
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
||||
|
|
@ -118,7 +120,7 @@ foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml
|
|||
#### Output in read write mode
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/01/config.yaml --cli.read_write
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
||||
|
|
@ -140,7 +142,7 @@ proxy_mode: Manual proxy configuration
|
|||
#### Output
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
||||
|
|
@ -152,7 +154,7 @@ foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml
|
|||
#### Output in read write mode
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/02/config.yaml --cli.read_write
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ff0000">🛑 ERRORS</span>
|
||||
|
|
@ -177,7 +179,7 @@ manual:
|
|||
#### Output
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml
|
||||
```
|
||||
<pre>╭────────────── Caption ───────────────╮
|
||||
|
|
@ -193,7 +195,7 @@ Variables:
|
|||
#### Output in read write mode
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/03/config.yaml --cli.read_write
|
||||
```
|
||||
<pre>╭────────────── Caption ───────────────╮
|
||||
|
|
@ -223,7 +225,7 @@ manual:
|
|||
#### Output
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
|
||||
|
|
@ -241,7 +243,7 @@ Variables:
|
|||
#### Output in read write mode
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/04/config.yaml --cli.read_write
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
|
||||
|
|
@ -276,7 +278,7 @@ manual:
|
|||
#### Output
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
|
||||
|
|
@ -296,7 +298,7 @@ Variables:
|
|||
#### Output in read write mode
|
||||
|
||||
```console
|
||||
foo@bar:~$ git switch --detach v1.1_023
|
||||
foo@bar:~$ git switch --detach v1.1_024
|
||||
foo@bar:~$ rougail -m firefox/ -u yaml -ff config/05/config.yaml --cli.read_write
|
||||
```
|
||||
<pre><span style="font-weight: bold; color: #ffff00">🔔 WARNINGS</span>
|
||||
|
|
@ -315,4 +317,4 @@ Variables:
|
|||
</pre>
|
||||
|
||||
|
||||
- [[tutorial v1.1_024] A variable with type's parameters](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_024/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_024~1..v1.1_024))
|
||||
- [[tutorial v1.1_025] A variable with type "port"](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_025/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_025~1..v1.1_025))
|
||||
|
|
|
|||
Loading…
Reference in a new issue