Commit graph

66 commits

Author SHA1 Message Date
8d80107c6b [tutorial 050] A variable in avanced mode (config and doc) 2024-09-07 19:07:00 +02:00
36135c14f0 [tutorial 044] Help
We can add help informations for documentation.
2024-09-07 19:06:58 +02:00
42b5df23d8 [tutorial 044] Help (config and doc) 2024-09-07 19:06:58 +02:00
9d2c616871 [tutorial 043] Examples
We can add example (only for documentation).
2024-09-07 19:06:57 +02:00
9cb8576f87 [tutorial 043] Examples (config and doc) 2024-09-07 19:06:57 +02:00
18a5cf9c97 [tutorial 042] A non mandatory variable 2024-09-07 19:06:56 +02:00
d9a281c840 [tutorial 042] A non mandatory variable (config and doc) 2024-09-07 19:06:56 +02:00
965f7c01a8 [tutorial 041] A variable multi
This variable accept multiple value.
2024-09-07 19:06:55 +02:00
025b5fe68f [tutorial 041] A variable multi (config and doc) 2024-09-07 19:06:55 +02:00
99d5be788a [tutorial 040] A conditional disabled variable
Add a new "no\_proxy" variable.
2024-09-07 19:06:54 +02:00
18a5b85490 [tutorial 040] A conditional disabled variable (config and doc) 2024-09-07 19:06:54 +02:00
11a698a893 [tutorial 030] A conditional disabled variable
Add a new "auto" variable.
2024-09-07 19:06:52 +02:00
097cf26009 [tutorial 030] A conditional disabled variable (config and doc) 2024-09-07 19:06:52 +02:00
7b0ad7c84c [tutorial 029] Description of Jinja calculation
By default, the Jinja calculation is generic in documentation. We can add a useful description.

We add a new variable "version" only accessible in "Socks" family.
2024-09-07 19:06:51 +02:00
a0bcae3f5f [tutorial 029] Description of Jinja calculation (config and doc) 2024-09-07 19:06:51 +02:00
59e38f2563 [tutorial 028] Description of Jinja calculation
By default, the Jinja calculation is generic in documentation. We can add a useful description.

We add a new variable "version" only accessible in "Socks" family.
2024-09-07 19:06:50 +02:00
98986477da [tutorial 028] Description of Jinja calculation (config and doc) 2024-09-07 19:06:50 +02:00
14be5eb0fa [tutorial 027] A dynamic family
HTTPS and socks proxy are very similar. It could be interesting to do on dynamic family instead of duplicate family and variable description.

First of all, we add a dynamic attribute to the family. Dynamic is here a static list of suffix. It could be a variable or jinja informations too.

The dynamic family is only hidden in the HTTPs case.
Hidden is now a Jinja calculation with a parameter named "suffix".

The suffix is use in:

- family name
- family description
- variables name
- variables description
2024-09-07 19:06:49 +02:00
563862c513 [tutorial 027] A dynamic family (config and doc) 2024-09-07 19:06:49 +02:00
d4fa5e8626 [tutorial 026] A dynamic family
HTTPS and socks proxy are very similar. It could be interesting to do on dynamic family instead of duplicate family and variable description.

First of all, we add a dynamic attribute to the family. Dynamic is here a static list of suffix. It could be a variable or jinja informations too.

The dynamic family is only hidden in the HTTPs case.
Hidden is now a Jinja calculation with a parameter named "suffix".

The suffix is use in:

- family name
- family description
- variables name
- variables description
2024-09-07 19:06:48 +02:00
4b6af9bbf7 [tutorial 026] A dynamic family (config and doc) 2024-09-07 19:06:48 +02:00
451c33a3cb [tutorial 025] Conditional hidden family and calculated default value
Add a sub family "https_proxy" which will be hidden if "use_for_https" is True.

Hidden means that we cannot change value, but we can access to it in read only mode. Inside, we add two variable with calculated default value (with variable type).

So, if user set "use_for_https" to True, the default values of HTTPS configuration will be a copy of HTTP values. The use can change HTTPS values if needed.

If user set "use_for_https" to False, the default values of HTTPS configuration will only be a copy of HTTP values.
2024-09-07 19:06:47 +02:00
0d6414cdbc [tutorial 025] Conditional hidden family and calculated default value (config and doc) 2024-09-07 19:06:47 +02:00
58e7ff0780 [tutorial 024] Conditional hidden family and calculated default value
Add a sub family "https_proxy" which will be hidden if "use_for_https" is True.

Hidden means that we cannot change value, but we can access to it in read only mode. Inside, we add two variable with calculated default value (with variable type).

So, if user set "use_for_https" to True, the default values of HTTPS configuration will be a copy of HTTP values. The use can change HTTPS values if needed.

If user set "use_for_https" to False, the default values of HTTPS configuration will only be a copy of HTTP values.
2024-09-07 19:06:46 +02:00
d17f2d3c7b [tutorial 024] Conditional hidden family and calculated default value (config and doc) 2024-09-07 19:06:46 +02:00
57640cb47d [tutorial 023] Conditional hidden family and calculated default value
Add a sub family "https_proxy" which will be hidden if "use_for_https" is True.

Hidden means that we cannot change value, but we can access to it in read only mode. Inside, we add two variable with calculated default value (with variable type).

So, if user set "use_for_https" to True, the default values of HTTPS configuration will be a copy of HTTP values. The use can change HTTPS values if needed.

If user set "use_for_https" to False, the default values of HTTPS configuration will only be a copy of HTTP values.
2024-09-07 19:06:45 +02:00
b285130eaf [tutorial 023] Conditional hidden family and calculated default value (config and doc) 2024-09-07 19:06:45 +02:00
22376999bb [tutorial 022] A variable in "shorthand" mode
Transform it in "shorthand" mode.

In this notation we can only define:

- name
- default value (so deduct the type)
- description
2024-09-07 19:06:44 +02:00
b4c0913830 [tutorial 022] A variable in "shorthand" mode (config and doc) 2024-09-07 19:06:44 +02:00
a1d82f1d56 [tutorial 021] Bases type is optional if default value
The type is deduct with the default value type. This is only true for "string", "number", "float" or "boolean" variables.
2024-09-07 19:06:43 +02:00
941796c3ea [tutorial 021] Bases type is optional if default value (config and doc) 2024-09-07 19:06:43 +02:00
a6eb552218 [tutorial 020] A boolean variable
Let's create a boolean variable.
2024-09-07 19:06:42 +02:00
fe90edc4a0 [tutorial 020] A boolean variable (config and doc) 2024-09-07 19:06:42 +02:00
45115a7601 [tutorial 018] Family in "shorthand" mode
The sub family is now in "shorthand" mode. In this mode we can only define "name" and "description" attributes.

Inside the sub family we add two variables (with domainname and port types).
2024-09-07 19:06:40 +02:00
55a9afa0c9 [tutorial 018] Family in "shorthand" mode (config and doc) 2024-09-07 19:06:40 +02:00
3039ddbf94 [tutorial 017] Family in "shorthand" mode
The sub family is now in "shorthand" mode. In this mode we can only define "name" and "description" attributes.

Inside the sub family we add two variables (with domainname and port types).
2024-09-07 19:06:39 +02:00
d704e22c00 [tutorial 017] Family in "shorthand" mode (config and doc) 2024-09-07 19:06:39 +02:00
f39f178d12 [tutorial 016] Family in "shorthand" mode
The sub family is now in "shorthand" mode. In this mode we can only define "name" and "description" attributes.

Inside the sub family we add two variables (with domainname and port types).
2024-09-07 19:06:38 +02:00
2be7f53881 [tutorial 016] Family in "shorthand" mode (config and doc) 2024-09-07 19:06:38 +02:00
5ddac2d967 [tutorial 015] Family in "shorthand" mode
The sub family is now in "shorthand" mode. In this mode we can only define "name" and "description" attributes.

Inside the sub family we add two variables (with domainname and port types).
2024-09-07 19:06:37 +02:00
cf2e536af5 [tutorial 015] Family in "shorthand" mode (config and doc) 2024-09-07 19:06:37 +02:00
d6fb08d2cc [tutorial 014] Family in "shorthand" mode
The sub family is now in "shorthand" mode. In this mode we can only define "name" and "description" attributes.

Inside the sub family we add two variables (with domainname and port types).
2024-09-07 19:06:36 +02:00
3c3df03788 [tutorial 014] Family in "shorthand" mode (config and doc) 2024-09-07 19:06:36 +02:00
3611325a24 [tutorial 013] A sub family
Inside a family, we can have variables or families.

The "type" for family "manual" became unecessary because container an other family, so it's not a variable.

In disabled attribute, it's better tu use relative path (we will see the reason in an other slide).
2024-09-07 19:06:35 +02:00
511dfab6a8 [tutorial 013] A sub family (config and doc) 2024-09-07 19:06:35 +02:00
23f42b3f00 [tutorial 012] Conditional desactived family
This family will be desactived if "proxy_mode" is not "manual proxy configuration".

Desactived a variable or a family means that this variable will never be accessible.
2024-09-07 19:06:34 +02:00
f6c8885e14 [tutorial 012] Conditional desactived family (config and doc) 2024-09-07 19:06:34 +02:00
666947cfc5 [tutorial 011] Conditional desactived family
This family will be desactived if "proxy_mode" is not "manual proxy configuration".

Desactived a variable or a family means that this variable will never be accessible.
2024-09-07 19:06:33 +02:00
2709913b05 [tutorial 011] Conditional desactived family (config and doc) 2024-09-07 19:06:33 +02:00
8613880131 [tutorial 010] A family
The "manual" mode structural descriptions are write in a new files to separate things. But Rougail will concatenate variables and families.

We create a family, which will contain other variables.

This family has:

- a description
- a type

As there is no variable inside this family, the type is mandatory. Without it, Rougail will create a variable.

In fact, this family will be deleted by Rougail too because it is empty.
2024-09-07 19:06:33 +02:00