diff --git a/locale/fr/LC_MESSAGES/rougail_output_doc.po b/locale/fr/LC_MESSAGES/rougail_output_doc.po index daad2ae22..0cefb71cc 100644 --- a/locale/fr/LC_MESSAGES/rougail_output_doc.po +++ b/locale/fr/LC_MESSAGES/rougail_output_doc.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2026-01-27 22:09+0100\n" -"PO-Revision-Date: 2026-01-27 22:10+0100\n" +"POT-Creation-Date: 2026-01-29 08:31+0100\n" +"PO-Revision-Date: 2026-01-29 08:33+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -322,77 +322,59 @@ msgstr "dépend d'un calcul" msgid "\"{0}\" is a calculation for {1} but has no description in {2}" msgstr "\"{0}\" est un calcul pour {1} mais n'a pas de description dans {2}" -#: src/rougail/output_doc/doc.py:786 src/rougail/output_doc/doc.py:929 +#: src/rougail/output_doc/doc.py:786 src/rougail/output_doc/doc.py:913 msgid "depends on an undocumented variable" msgstr "dépends d'une variable non documentée" #: src/rougail/output_doc/doc.py:804 -#, fuzzy -#| msgid "when the variable \"{{0}}\" is {0}\"" -msgid "when the variable \"{{0}}\" is \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" est \"{0}\"" +msgid "is \"{0}\"" +msgstr "est \"{0}\"" -#: src/rougail/output_doc/doc.py:812 -msgid "" -"when the variable \"{{0}}\" is defined, accessible and hasn't the value " -"\"{0}\"" -msgstr "" -"lorsque la variable \"{{0}}\" est définie, accessible et n'a pas la valeur " -"\"{0}\"" +#: src/rougail/output_doc/doc.py:809 +msgid "is accessible" +msgstr "est accessible" + +#: src/rougail/output_doc/doc.py:811 +msgid "is defined" +msgstr "est définie" #: src/rougail/output_doc/doc.py:816 -msgid "when the variable \"{{0}}\" is defined and hasn't the value \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" est définie et n'a pas la valeur \"{0}\"" +msgid "hasn't the value \"{0}\"" +msgstr "n'a pas la valeur \"{0}\"" #: src/rougail/output_doc/doc.py:820 -msgid "when the variable \"{{0}}\" is accessible and hasn't the value \"{0}\"" -msgstr "" -"lorsque la variable \"{{0}}\" est accessible et n'a pas la valeur \"{0}\"" +msgid "has the value \"{0}\"" +msgstr "a la valeur \"{0}\"" -#: src/rougail/output_doc/doc.py:822 -msgid "when the variable \"{{0}}\" hasn't the value \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" n'a pas la valeur \"{0}\"" +#: src/rougail/output_doc/doc.py:825 +msgid "is {0}" +msgstr "est {0}" #: src/rougail/output_doc/doc.py:826 -msgid "" -"when the variable \"{{0}}\" is defined, is accessible and has the value " -"\"{0}\"" -msgstr "" -"lorsque la variable \"{{0}}\" est définie, accessible et a la valeur \"{0}\"" +msgid "when the variable \"{{0}}\" {0}" +msgstr "lorsque la variable \"{{0}}\" {0}" -#: src/rougail/output_doc/doc.py:830 -msgid "when the variable \"{{0}}\" is defined and has the value \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" est définie et a la valeur \"{0}\"" - -#: src/rougail/output_doc/doc.py:834 -msgid "when the variable \"{{0}}\" is accessible and has the value \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" est accessible et a la valeur \"{0}\"" - -#: src/rougail/output_doc/doc.py:836 -msgid "when the variable \"{{0}}\" has the value \"{0}\"" -msgstr "lorsque la variable \"{{0}}\" a la valeur \"{0}\"" - -#: src/rougail/output_doc/doc.py:869 +#: src/rougail/output_doc/doc.py:853 msgid "the value of the variable \"{0}\" if it is defined" msgstr "la valeur de la variable \"{0}\" si elle est définie" -#: src/rougail/output_doc/doc.py:871 +#: src/rougail/output_doc/doc.py:855 msgid "the value of the variable \"{0}\"" msgstr "la valeur de la variable \"{0}\"" -#: src/rougail/output_doc/doc.py:891 +#: src/rougail/output_doc/doc.py:875 msgid "the value of an undocumented variable" msgstr "la valeur d'une variable non documentée" -#: src/rougail/output_doc/doc.py:894 +#: src/rougail/output_doc/doc.py:878 msgid "the values of undocumented variables" msgstr "les valeurs de variables non documentées" -#: src/rougail/output_doc/doc.py:917 +#: src/rougail/output_doc/doc.py:901 msgid "(from an undocumented variable)" msgstr "(issue d'une variable non documentée)" -#: src/rougail/output_doc/doc.py:925 +#: src/rougail/output_doc/doc.py:909 msgid "{0} (from an undocumented variable)" msgstr "{0} (issue d'une variable non documentée)" @@ -456,6 +438,41 @@ msgstr "(défaut)" msgid "{0}: {1}" msgstr "{0} : {1}" +#~ msgid "" +#~ "when the variable \"{{0}}\" is defined, accessible and hasn't the value " +#~ "\"{0}\"" +#~ msgstr "" +#~ "lorsque la variable \"{{0}}\" est définie, accessible et n'a pas la " +#~ "valeur \"{0}\"" + +#~ msgid "when the variable \"{{0}}\" is defined and hasn't the value \"{0}\"" +#~ msgstr "" +#~ "lorsque la variable \"{{0}}\" est définie et n'a pas la valeur \"{0}\"" + +#~ msgid "" +#~ "when the variable \"{{0}}\" is accessible and hasn't the value \"{0}\"" +#~ msgstr "" +#~ "lorsque la variable \"{{0}}\" est accessible et n'a pas la valeur \"{0}\"" + +#~ msgid "when the variable \"{{0}}\" hasn't the value \"{0}\"" +#~ msgstr "lorsque la variable \"{{0}}\" n'a pas la valeur \"{0}\"" + +#~ msgid "" +#~ "when the variable \"{{0}}\" is defined, is accessible and has the value " +#~ "\"{0}\"" +#~ msgstr "" +#~ "lorsque la variable \"{{0}}\" est définie, accessible et a la valeur " +#~ "\"{0}\"" + +#~ msgid "when the variable \"{{0}}\" is defined and has the value \"{0}\"" +#~ msgstr "lorsque la variable \"{{0}}\" est définie et a la valeur \"{0}\"" + +#~ msgid "when the variable \"{{0}}\" is accessible and has the value \"{0}\"" +#~ msgstr "lorsque la variable \"{{0}}\" est accessible et a la valeur \"{0}\"" + +#~ msgid "when the variable \"{{0}}\" has the value \"{0}\"" +#~ msgstr "lorsque la variable \"{{0}}\" a la valeur \"{0}\"" + #~ msgid "Document the child variables of the family" #~ msgstr "Documenter les variables enfants de cette famille" diff --git a/locale/rougail_output_doc.pot b/locale/rougail_output_doc.pot index a3d083437..d03e5eb2e 100644 --- a/locale/rougail_output_doc.pot +++ b/locale/rougail_output_doc.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2026-01-27 22:10+0100\n" +"POT-Creation-Date: 2026-01-29 08:33+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -276,67 +276,59 @@ msgstr "" msgid "\"{0}\" is a calculation for {1} but has no description in {2}" msgstr "" -#: src/rougail/output_doc/doc.py:786 src/rougail/output_doc/doc.py:929 +#: src/rougail/output_doc/doc.py:786 src/rougail/output_doc/doc.py:913 msgid "depends on an undocumented variable" msgstr "" #: src/rougail/output_doc/doc.py:804 -msgid "when the variable \"{{0}}\" is \"{0}\"" +msgid "is \"{0}\"" msgstr "" -#: src/rougail/output_doc/doc.py:812 -msgid "when the variable \"{{0}}\" is defined, accessible and hasn't the value \"{0}\"" +#: src/rougail/output_doc/doc.py:809 +msgid "is accessible" +msgstr "" + +#: src/rougail/output_doc/doc.py:811 +msgid "is defined" msgstr "" #: src/rougail/output_doc/doc.py:816 -msgid "when the variable \"{{0}}\" is defined and hasn't the value \"{0}\"" +msgid "hasn't the value \"{0}\"" msgstr "" #: src/rougail/output_doc/doc.py:820 -msgid "when the variable \"{{0}}\" is accessible and hasn't the value \"{0}\"" +msgid "has the value \"{0}\"" msgstr "" -#: src/rougail/output_doc/doc.py:822 -msgid "when the variable \"{{0}}\" hasn't the value \"{0}\"" +#: src/rougail/output_doc/doc.py:825 +msgid "is {0}" msgstr "" #: src/rougail/output_doc/doc.py:826 -msgid "when the variable \"{{0}}\" is defined, is accessible and has the value \"{0}\"" +msgid "when the variable \"{{0}}\" {0}" msgstr "" -#: src/rougail/output_doc/doc.py:830 -msgid "when the variable \"{{0}}\" is defined and has the value \"{0}\"" -msgstr "" - -#: src/rougail/output_doc/doc.py:834 -msgid "when the variable \"{{0}}\" is accessible and has the value \"{0}\"" -msgstr "" - -#: src/rougail/output_doc/doc.py:836 -msgid "when the variable \"{{0}}\" has the value \"{0}\"" -msgstr "" - -#: src/rougail/output_doc/doc.py:869 +#: src/rougail/output_doc/doc.py:853 msgid "the value of the variable \"{0}\" if it is defined" msgstr "" -#: src/rougail/output_doc/doc.py:871 +#: src/rougail/output_doc/doc.py:855 msgid "the value of the variable \"{0}\"" msgstr "" -#: src/rougail/output_doc/doc.py:891 +#: src/rougail/output_doc/doc.py:875 msgid "the value of an undocumented variable" msgstr "" -#: src/rougail/output_doc/doc.py:894 +#: src/rougail/output_doc/doc.py:878 msgid "the values of undocumented variables" msgstr "" -#: src/rougail/output_doc/doc.py:917 +#: src/rougail/output_doc/doc.py:901 msgid "(from an undocumented variable)" msgstr "" -#: src/rougail/output_doc/doc.py:925 +#: src/rougail/output_doc/doc.py:909 msgid "{0} (from an undocumented variable)" msgstr "" diff --git a/src/rougail/output_doc/doc.py b/src/rougail/output_doc/doc.py index 92ae24ea9..dde71bc41 100644 --- a/src/rougail/output_doc/doc.py +++ b/src/rougail/output_doc/doc.py @@ -801,45 +801,29 @@ class RougailOutputDoc(Examples, Changelog): return True return False if condition["type"] == "transitive": - msg = _( - 'when the variable "{{0}}" is "{0}"' - ).format(prop) + submsg = _('is "{0}"').format(prop) else: condition_type = condition["condition"] - if condition_type == "when_not": - if calculation["optional"]: - if not calculation["propertyerror"]: - msg = _( - 'when the variable "{{0}}" is defined, accessible and hasn\'t the value "{0}"' - ) - else: - msg = _( - 'when the variable "{{0}}" is defined and hasn\'t the value "{0}"' - ) - elif not calculation["propertyerror"]: - msg = _('when the variable "{{0}}" is accessible and hasn\'t the value "{0}"') - else: - msg = _('when the variable "{{0}}" hasn\'t the value "{0}"') - else: - if calculation["optional"]: - if not calculation["propertyerror"]: - msg = _( - 'when the variable "{{0}}" is defined, is accessible and has the value "{0}"' - ) - else: - msg = _( - 'when the variable "{{0}}" is defined and has the value "{0}"' - ) - elif not calculation["propertyerror"]: - msg = _('when the variable "{{0}}" is accessible and has the value "{0}"') - else: - msg = _('when the variable "{{0}}" has the value "{0}"') + conditions = [] + if not calculation["propertyerror"]: + conditions.append(_("is accessible")) + if calculation["optional"]: + conditions.append(_("is defined")) value = condition["value"] - if isinstance(value, str): - str_value = value + if not isinstance(value, str): + value = dump(value) + if condition_type == "when_not": + conditions.append(_( + 'hasn\'t the value "{0}"' + ).format(value)) else: - str_value = dump(value) - msg = msg.format(str_value) + conditions.append(_( + 'has the value "{0}"' + ).format(value)) + submsg = display_list(conditions, sort=False) + if calculation["propertyerror"] == "transitive": + submsg = display_list([_("is {0}").format(prop), submsg], separator="or", sort=False) + msg = _('when the variable "{{0}}" {0}').format(submsg) path_obj = { "path": self.doc_path(variable_path), } diff --git a/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo b/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo index 49c413651..e58f56d05 100644 Binary files a/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo and b/src/rougail/output_doc/locale/fr/LC_MESSAGES/rougail_output_doc.mo differ diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..ca6f2aa05 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..853b59ff0 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..5dd019e87 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: false
variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.json b/tests/results/test/04_5disabled_calculation_variable_transitive_3.json new file mode 100644 index 000000000..c71ad909b --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.json @@ -0,0 +1,102 @@ +{ + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": false + }, + "variable_type": "boolean", + "path": "condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + false + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "disabled" + }, + "variable_type": "string", + "path": "variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..853b59ff0 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..18cc65799 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,16 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..58b5c3155 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..f211acb0d --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..6c8f4d15c --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: true
variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.json b/tests/results/test/04_5disabled_calculation_variable_transitive_4.json new file mode 100644 index 000000000..734c45467 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.json @@ -0,0 +1,102 @@ +{ + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": true + }, + "variable_type": "boolean", + "path": "condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + true + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "not_disabled" + }, + "variable_type": "string", + "path": "variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "not_disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..f211acb0d --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..248799492 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,16 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..e257313e0 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,16 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +variable2: example +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +condition: false +variable1: disabled +variable2: example +---- diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..ff27fe6f8 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,18 @@ +
Example with mandatory variables not filled in + +```yaml +--- +variable2: example +``` +
+ +
Example with all variables modifiable + +```yaml +--- +condition: false +variable1: disabled +variable2: example +``` +
+ diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..68aef21d1 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,7 @@ +

Example with mandatory variables not filled in

+ +
variable2: example

Example with all variables modifiable

+ +
condition: false
+variable1: disabled
+variable2: example
\ No newline at end of file diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..ba41113fb --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,14 @@ +# Example with mandatory variables not filled in + +```yaml +--- +variable2: example +``` +# Example with all variables modifiable + +```yaml +--- +condition: false +variable1: disabled +variable2: example +``` diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..fe6b5b35c --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,12 @@ +Example with mandatory variables not filled in + +---  +variable2: example  + +Example with all variables modifiable + +---  +condition: false  +variable1: disabled  +variable2: example  + diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..36c3f3648 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,16 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +variable2: example +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +condition: true +variable1: not_disabled +variable2: example +---- diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..216c728f5 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,18 @@ +
Example with mandatory variables not filled in + +```yaml +--- +variable2: example +``` +
+ +
Example with all variables modifiable + +```yaml +--- +condition: true +variable1: not_disabled +variable2: example +``` +
+ diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..d6bece665 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,7 @@ +

Example with mandatory variables not filled in

+ +
variable2: example

Example with all variables modifiable

+ +
condition: true
+variable1: not_disabled
+variable2: example
\ No newline at end of file diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..4463a3fb5 --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,14 @@ +# Example with mandatory variables not filled in + +```yaml +--- +variable2: example +``` +# Example with all variables modifiable + +```yaml +--- +condition: true +variable1: not_disabled +variable2: example +``` diff --git a/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..029f52e4f --- /dev/null +++ b/tests/results/test_examples/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,12 @@ +Example with mandatory variables not filled in + +---  +variable2: example  + +Example with all variables modifiable + +---  +condition: true  +variable1: not_disabled  +variable2: example  + diff --git a/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_examples/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..fe59e67ad --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,16 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +variable2: example # A second variable +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +condition: false # A condition +variable1: disabled # A variable +variable2: example # A second variable +---- diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..2a9de9b09 --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,18 @@ +
Example with mandatory variables not filled in + +```yaml +--- +variable2: example # A second variable +``` +
+ +
Example with all variables modifiable + +```yaml +--- +condition: false # A condition +variable1: disabled # A variable +variable2: example # A second variable +``` +
+ diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..76b08df8f --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,7 @@ +

Example with mandatory variables not filled in

+ +
variable2: example            # A second variable

Example with all variables modifiable

+ +
condition: false              # A condition
+variable1: disabled           # A variable
+variable2: example            # A second variable
\ No newline at end of file diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..a736e13d0 --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,14 @@ +# Example with mandatory variables not filled in + +```yaml +--- +variable2: example # A second variable +``` +# Example with all variables modifiable + +```yaml +--- +condition: false # A condition +variable1: disabled # A variable +variable2: example # A second variable +``` diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..d573e9a70 --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,12 @@ +Example with mandatory variables not filled in + +---  +variable2: example # A second variable  + +Example with all variables modifiable + +---  +condition: false # A condition  +variable1: disabled # A variable  +variable2: example # A second variable  + diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..64d4b700a --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,16 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +variable2: example # A second variable +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +condition: true # A condition +variable1: not_disabled # A variable +variable2: example # A second variable +---- diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..eb6c8e36c --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,18 @@ +
Example with mandatory variables not filled in + +```yaml +--- +variable2: example # A second variable +``` +
+ +
Example with all variables modifiable + +```yaml +--- +condition: true # A condition +variable1: not_disabled # A variable +variable2: example # A second variable +``` +
+ diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..e252b9f9d --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,7 @@ +

Example with mandatory variables not filled in

+ +
variable2: example            # A second variable

Example with all variables modifiable

+ +
condition: true               # A condition
+variable1: not_disabled       # A variable
+variable2: example            # A second variable
\ No newline at end of file diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..44bf3e818 --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,14 @@ +# Example with mandatory variables not filled in + +```yaml +--- +variable2: example # A second variable +``` +# Example with all variables modifiable + +```yaml +--- +condition: true # A condition +variable1: not_disabled # A variable +variable2: example # A second variable +``` diff --git a/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..5f70e933a --- /dev/null +++ b/tests/results/test_examples_comment/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,12 @@ +Example with mandatory variables not filled in + +---  +variable2: example # A second variable  + +Example with all variables modifiable + +---  +condition: true # A condition  +variable1: not_disabled # A variable  +variable2: example # A second variable  + diff --git a/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..d20c8ee8b --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,23 @@ +== Rougail + +==== +**🛈 Informations** + +**Path**: rougail + +`basic` +==== +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..9d809842e --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,14 @@ +
Rougail + +> [!note] 🛈 Informations +> **Path**: rougail\ +> `basic` + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..4c7da1d91 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,17 @@ +

Rougail

+ +Path: rougail + +basic + + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: false
rougail.variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.json b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.json new file mode 100644 index 000000000..8786504c4 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.json @@ -0,0 +1,116 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "path": "rougail", + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [], + "mode": "basic" + }, + "children": { + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": false + }, + "variable_type": "boolean", + "path": "rougail.condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + false + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "disabled" + }, + "variable_type": "string", + "path": "rougail.variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "rougail.condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "rougail.variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "rougail.variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..e74a7ad7e --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,13 @@ +# Rougail + +> [!NOTE] +> +> **Path**: rougail\ +> `basic` + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..cd14f332c --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,25 @@ +Rougail + +▌ 🛈 Informations +▌  +▌ Path: rougail +▌  basic  + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..662b41386 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,23 @@ +== Rougail + +==== +**🛈 Informations** + +**Path**: rougail + +`basic` +==== +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..dbec083fc --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,14 @@ +
Rougail + +> [!note] 🛈 Informations +> **Path**: rougail\ +> `basic` + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..81b753546 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,17 @@ +

Rougail

+ +Path: rougail + +basic + + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: true
rougail.variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.json b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.json new file mode 100644 index 000000000..c388bbade --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.json @@ -0,0 +1,116 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "path": "rougail", + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [], + "mode": "basic" + }, + "children": { + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": true + }, + "variable_type": "boolean", + "path": "rougail.condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + true + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "not_disabled" + }, + "variable_type": "string", + "path": "rougail.variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "rougail.condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "not_disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "rougail.variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "rougail.variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..8b4290248 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,13 @@ +# Rougail + +> [!NOTE] +> +> **Path**: rougail\ +> `basic` + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..8ebbf4809 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,25 @@ +Rougail + +▌ 🛈 Informations +▌  +▌ Path: rougail +▌  basic  + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..b2162baa5 --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,18 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +rougail: + variable2: example +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +rougail: + condition: false + variable1: disabled + variable2: example +---- diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..5ba4d4a0b --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,20 @@ +
Example with mandatory variables not filled in + +```yaml +--- +rougail: + variable2: example +``` +
+ +
Example with all variables modifiable + +```yaml +--- +rougail: + condition: false + variable1: disabled + variable2: example +``` +
+ diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..eabe8300a --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,9 @@ +

Example with mandatory variables not filled in

+ +
rougail:
+  variable2: example

Example with all variables modifiable

+ +
rougail:
+  condition: false
+  variable1: disabled
+  variable2: example
\ No newline at end of file diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..5b23155ce --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,16 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: + variable2: example +``` +# Example with all variables modifiable + +```yaml +--- +rougail: + condition: false + variable1: disabled + variable2: example +``` diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..9eb6616f5 --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,14 @@ +Example with mandatory variables not filled in + +---  +rougail:  + variable2: example  + +Example with all variables modifiable + +---  +rougail:  + condition: false  + variable1: disabled  + variable2: example  + diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..216a2e530 --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,18 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +rougail: + variable2: example +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +rougail: + condition: true + variable1: not_disabled + variable2: example +---- diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..4f5b49f5f --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,20 @@ +
Example with mandatory variables not filled in + +```yaml +--- +rougail: + variable2: example +``` +
+ +
Example with all variables modifiable + +```yaml +--- +rougail: + condition: true + variable1: not_disabled + variable2: example +``` +
+ diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..4558e11b5 --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,9 @@ +

Example with mandatory variables not filled in

+ +
rougail:
+  variable2: example

Example with all variables modifiable

+ +
rougail:
+  condition: true
+  variable1: not_disabled
+  variable2: example
\ No newline at end of file diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..40dc941aa --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,16 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: + variable2: example +``` +# Example with all variables modifiable + +```yaml +--- +rougail: + condition: true + variable1: not_disabled + variable2: example +``` diff --git a/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..dc127ccb3 --- /dev/null +++ b/tests/results/test_namespace_examples/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,14 @@ +Example with mandatory variables not filled in + +---  +rougail:  + variable2: example  + +Example with all variables modifiable + +---  +rougail:  + condition: true  + variable1: not_disabled  + variable2: example  + diff --git a/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_examples/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..bdc3a8f5f --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,18 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +rougail: # Rougail + variable2: example # A second variable +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +rougail: # Rougail + condition: false # A condition + variable1: disabled # A variable + variable2: example # A second variable +---- diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..f6e9ad049 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,20 @@ +
Example with mandatory variables not filled in + +```yaml +--- +rougail: # Rougail + variable2: example # A second variable +``` +
+ +
Example with all variables modifiable + +```yaml +--- +rougail: # Rougail + condition: false # A condition + variable1: disabled # A variable + variable2: example # A second variable +``` +
+ diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..cccedc74d --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,9 @@ +

Example with mandatory variables not filled in

+ +
rougail:                      # Rougail
+  variable2: example          # A second variable

Example with all variables modifiable

+ +
rougail:                      # Rougail
+  condition: false            # A condition
+  variable1: disabled         # A variable
+  variable2: example          # A second variable
\ No newline at end of file diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..0bb60e0a6 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,16 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: # Rougail + variable2: example # A second variable +``` +# Example with all variables modifiable + +```yaml +--- +rougail: # Rougail + condition: false # A condition + variable1: disabled # A variable + variable2: example # A second variable +``` diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..794192fb2 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,14 @@ +Example with mandatory variables not filled in + +---  +rougail: # Rougail  + variable2: example # A second variable  + +Example with all variables modifiable + +---  +rougail: # Rougail  + condition: false # A condition  + variable1: disabled # A variable  + variable2: example # A second variable  + diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..69d70a5d2 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,18 @@ +== Example with mandatory variables not filled in + +[,yaml] +---- +--- +rougail: # Rougail + variable2: example # A second variable +---- +== Example with all variables modifiable + +[,yaml] +---- +--- +rougail: # Rougail + condition: true # A condition + variable1: not_disabled # A variable + variable2: example # A second variable +---- diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..93e6d8374 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,20 @@ +
Example with mandatory variables not filled in + +```yaml +--- +rougail: # Rougail + variable2: example # A second variable +``` +
+ +
Example with all variables modifiable + +```yaml +--- +rougail: # Rougail + condition: true # A condition + variable1: not_disabled # A variable + variable2: example # A second variable +``` +
+ diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..716b470e7 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,9 @@ +

Example with mandatory variables not filled in

+ +
rougail:                      # Rougail
+  variable2: example          # A second variable

Example with all variables modifiable

+ +
rougail:                      # Rougail
+  condition: true             # A condition
+  variable1: not_disabled     # A variable
+  variable2: example          # A second variable
\ No newline at end of file diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..7ee06474a --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,16 @@ +# Example with mandatory variables not filled in + +```yaml +--- +rougail: # Rougail + variable2: example # A second variable +``` +# Example with all variables modifiable + +```yaml +--- +rougail: # Rougail + condition: true # A condition + variable1: not_disabled # A variable + variable2: example # A second variable +``` diff --git a/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..6213df948 --- /dev/null +++ b/tests/results/test_namespace_examples_comment/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,14 @@ +Example with mandatory variables not filled in + +---  +rougail: # Rougail  + variable2: example # A second variable  + +Example with all variables modifiable + +---  +rougail: # Rougail  + condition: true # A condition  + variable1: not_disabled # A variable  + variable2: example # A second variable  + diff --git a/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_examples_comment/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..962a24ee9 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc new file mode 100644 index 000000000..60c142abb --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc @@ -0,0 +1,17 @@ +== New variables + +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md new file mode 100644 index 000000000..943b3c276 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md @@ -0,0 +1,10 @@ +
New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html new file mode 100644 index 000000000..3a25941cf --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html @@ -0,0 +1,13 @@ +

New variables

+ + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: false
rougail.variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md new file mode 100644 index 000000000..422239ddf --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md @@ -0,0 +1,8 @@ +# New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh new file mode 100644 index 000000000..b60b25bb5 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh @@ -0,0 +1,20 @@ +New variables + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..daf01ea34 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..a0bdb21ac --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: false
rougail.variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.json b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.json new file mode 100644 index 000000000..8786504c4 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.json @@ -0,0 +1,116 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "path": "rougail", + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [], + "mode": "basic" + }, + "children": { + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": false + }, + "variable_type": "boolean", + "path": "rougail.condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + false + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "disabled" + }, + "variable_type": "string", + "path": "rougail.variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "rougail.condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "rougail.variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "rougail.variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..daf01ea34 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..f435ee927 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,17 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..5a1b490f7 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc new file mode 100644 index 000000000..3a2d45450 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc @@ -0,0 +1,17 @@ +== New variables + +[cols="1a,1a"] +|==== +| Variable | Description +| **rougail.condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **rougail.variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "rougail.condition" has the value "true" +| **rougail.variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "rougail.variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md new file mode 100644 index 000000000..5302e2364 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md @@ -0,0 +1,10 @@ +
New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html new file mode 100644 index 000000000..81df583f9 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html @@ -0,0 +1,13 @@ +

New variables

+ + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: true
rougail.variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md new file mode 100644 index 000000000..51dc25c29 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md @@ -0,0 +1,8 @@ +# New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh new file mode 100644 index 000000000..674229808 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh @@ -0,0 +1,20 @@ +New variables + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..be2d649a0 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..e3080f519 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
rougail.condition
boolean standard mandatory
A condition.
Default: true
rougail.variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "rougail.condition" has the value "true"
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "rougail.variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.json b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.json new file mode 100644 index 000000000..c388bbade --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.json @@ -0,0 +1,116 @@ +{ + "rougail": { + "type": "namespace", + "informations": { + "path": "rougail", + "names": [ + "rougail" + ], + "description": "Rougail", + "properties": [], + "mode": "basic" + }, + "children": { + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": true + }, + "variable_type": "boolean", + "path": "rougail.condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + true + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "not_disabled" + }, + "variable_type": "string", + "path": "rougail.variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "rougail.condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "not_disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "rougail.variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "rougail.variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..be2d649a0 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------| +| **rougail.condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **rougail.variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#rougail.condition)" has the value "true" | +| **rougail.variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#rougail.variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..77f342342 --- /dev/null +++ b/tests/results/test_namespace_without_family/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,17 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ rougail.condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "rougail.condition" has the value │ +│ │ "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ rougail.variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "rougail.variable1" is disabled or │ +│ │ has the value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_namespace_without_family/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.adoc b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.adoc new file mode 100644 index 000000000..ca6f2aa05 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc new file mode 100644 index 000000000..d7449b8f0 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.adoc @@ -0,0 +1,17 @@ +== New variables + +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: false +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md new file mode 100644 index 000000000..4a2b4d160 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.gitlab.md @@ -0,0 +1,10 @@ +
New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html new file mode 100644 index 000000000..29ca8fbd1 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.html @@ -0,0 +1,13 @@ +

New variables

+ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: false
variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md new file mode 100644 index 000000000..bc80aebbc --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.md @@ -0,0 +1,8 @@ +# New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh new file mode 100644 index 000000000..f06329edb --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.changelog.sh @@ -0,0 +1,19 @@ +New variables + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md new file mode 100644 index 000000000..853b59ff0 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.html b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.html new file mode 100644 index 000000000..5dd019e87 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: false
variable1
string standard mandatory disabled
A variable.
Default: disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.json b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.json new file mode 100644 index 000000000..c71ad909b --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.json @@ -0,0 +1,102 @@ +{ + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": false + }, + "variable_type": "boolean", + "path": "condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + false + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "disabled" + }, + "variable_type": "string", + "path": "variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } +} \ No newline at end of file diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.md new file mode 100644 index 000000000..853b59ff0 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: false | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.sh b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.sh new file mode 100644 index 000000000..18cc65799 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_3.sh @@ -0,0 +1,16 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: false │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.adoc b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.adoc new file mode 100644 index 000000000..58b5c3155 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.adoc @@ -0,0 +1,15 @@ +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc new file mode 100644 index 000000000..583136fac --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.adoc @@ -0,0 +1,17 @@ +== New variables + +[cols="1a,1a"] +|==== +| Variable | Description +| **condition** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` | A condition. + +**Default**: true +| **variable1** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `__disabled__` | A variable. + +**Default**: not_disabled + +**Disabled**: when the variable "condition" has the value "true" +| **variable2** + +`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` | A second variable. + +**Disabled**: when the variable "variable1" is disabled or has the value "disabled" +|==== + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md new file mode 100644 index 000000000..92d5d4569 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.gitlab.md @@ -0,0 +1,10 @@ +
New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + +
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html new file mode 100644 index 000000000..a9f7f1253 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.html @@ -0,0 +1,13 @@ +

New variables

+ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: true
variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md new file mode 100644 index 000000000..ece2dd0d5 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.md @@ -0,0 +1,8 @@ +# New variables + +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh new file mode 100644 index 000000000..66d4db6f4 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.changelog.sh @@ -0,0 +1,19 @@ +New variables + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md new file mode 100644 index 000000000..f211acb0d --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.gitlab.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.html b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.html new file mode 100644 index 000000000..6c8f4d15c --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.html @@ -0,0 +1,11 @@ + + + + + + + + + +
Variable Description
condition
boolean standard mandatory
A condition.
Default: true
variable1
string standard mandatory disabled
A variable.
Default: not_disabled
Disabled: when the variable "condition" has the value "true"
variable2
string basic mandatory disabled
A second variable.
Disabled: when the variable "variable1" is disabled or has the value "disabled"
+ diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.json b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.json new file mode 100644 index 000000000..734c45467 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.json @@ -0,0 +1,102 @@ +{ + "condition": { + "type": "variable", + "default": { + "name": "Default", + "values": true + }, + "variable_type": "boolean", + "path": "condition", + "names": [ + "condition" + ], + "description": "A condition.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + } + ], + "mode": "standard", + "gen_examples": [ + true + ], + "mandatory_without_value": false + }, + "variable1": { + "type": "variable", + "default": { + "name": "Default", + "values": "not_disabled" + }, + "variable_type": "string", + "path": "variable1", + "names": [ + "variable1" + ], + "description": "A variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" has the value \"true\"", + "path": { + "path": "condition" + }, + "description": "A condition" + } + } + ], + "mode": "standard", + "gen_examples": [ + "not_disabled" + ], + "mandatory_without_value": false + }, + "variable2": { + "type": "variable", + "variable_type": "string", + "path": "variable2", + "names": [ + "variable2" + ], + "description": "A second variable.", + "properties": [ + { + "type": "property", + "name": "mandatory", + "ori_name": "mandatory", + "access_control": false + }, + { + "type": "property", + "name": "disabled", + "ori_name": "disabled", + "access_control": true, + "annotation": { + "message": "when the variable \"{0}\" is disabled or has the value \"disabled\"", + "path": { + "path": "variable1" + }, + "description": "A variable" + } + } + ], + "mode": "basic", + "gen_examples": [ + "example" + ], + "mandatory_without_value": true + } +} \ No newline at end of file diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.md b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.md new file mode 100644 index 000000000..f211acb0d --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.md @@ -0,0 +1,6 @@ +| Variable | Description | +|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------| +| **condition**
[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A condition.
**Default**: true | +| **variable1**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` *`disabled`* | A variable.
**Default**: not_disabled
**Disabled**: when the variable "[A condition](#condition)" has the value "true" | +| **variable2**
[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` *`disabled`* | A second variable.
**Disabled**: when the variable "[A variable](#variable1)" is disabled or has the value "disabled" | + diff --git a/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.sh b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.sh new file mode 100644 index 000000000..248799492 --- /dev/null +++ b/tests/results/test_without_family/04_5disabled_calculation_variable_transitive_4.sh @@ -0,0 +1,16 @@ +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +┃ Variable  ┃ Description  ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ +│ condition │ A condition. │ +│  boolean   standard   mandatory  │ Default: true │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable1 │ A variable. │ +│  string   standard   mandatory    │ Default: not_disabled │ +│ disabled  │ Disabled: when the variable │ +│ │ "condition" has the value "true" │ +├───────────────────────────────────────┼──────────────────────────────────────┤ +│ variable2 │ A second variable. │ +│  string   basic   mandatory    │ Disabled: when the variable │ +│ disabled  │ "variable1" is disabled or has the │ +│ │ value "disabled" │ +└───────────────────────────────────────┴──────────────────────────────────────┘ diff --git a/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_3 b/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_3 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_3 @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_4 b/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_4 new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/tests/results/test_without_family/warnings_04_5disabled_calculation_variable_transitive_4 @@ -0,0 +1 @@ +[] \ No newline at end of file