fix: groups.namespace could be unexistant
This commit is contained in:
parent
8e5cc2622e
commit
fd8a2843ba
46 changed files with 1386 additions and 25 deletions
locale
src/rougail/output_doc
tests
force_optional.adoc
force_optional
results
test
00_6choice_link.adoc00_6choice_link.json00_6choice_link.md00_6choice_link.sh00_6choice_variable_link.adoc00_6choice_variable_link.json00_6choice_variable_link.md00_6choice_variable_link.sh00_6choice_variable_link2.adoc00_6choice_variable_link2.json00_6choice_variable_link2.md00_6choice_variable_link2.sh00_6regexp_link.adoc00_6regexp_link.json00_6regexp_link.md00_6regexp_link.sh
test_examples
test_namespace
00_6choice_link.adoc00_6choice_link.json00_6choice_link.md00_6choice_link.sh00_6choice_variable_link.adoc00_6choice_variable_link.json00_6choice_variable_link.md00_6choice_variable_link.sh00_6choice_variable_link2.adoc00_6choice_variable_link2.json00_6choice_variable_link2.md00_6choice_variable_link2.sh00_6regexp_link.adoc00_6regexp_link.json00_6regexp_link.md00_6regexp_link.sh
test_namespace_examples
|
@ -5,8 +5,8 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2025-03-31 09:14+0200\n"
|
||||
"PO-Revision-Date: 2025-03-31 09:15+0200\n"
|
||||
"POT-Creation-Date: 2025-04-01 19:39+0200\n"
|
||||
"PO-Revision-Date: 2025-04-01 19:41+0200\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
|
@ -120,39 +120,39 @@ msgstr "multiple"
|
|||
msgid "No attribute \"description\" for \"{0}\" in {1}"
|
||||
msgstr "Aucun attribut \"description\" pour \"{0}\" dans {1}"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:463
|
||||
#: src/rougail/output_doc/doc.py:465
|
||||
msgid "(default)"
|
||||
msgstr "(défaut)"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:470
|
||||
#: src/rougail/output_doc/doc.py:472
|
||||
msgid "text based with regular expressions \"{0}\""
|
||||
msgstr "texte avec expression rationnelle \"{0}\""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:558
|
||||
#: src/rougail/output_doc/doc.py:560
|
||||
msgid "depends on a calculation"
|
||||
msgstr "dépend d'un calcul"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:559
|
||||
#: src/rougail/output_doc/doc.py:561
|
||||
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:581
|
||||
#: src/rougail/output_doc/doc.py:583
|
||||
msgid "the value of the variable \"{0}\""
|
||||
msgstr "la valeur de la variable \"{0}\""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:582
|
||||
#: src/rougail/output_doc/doc.py:584
|
||||
msgid "the value of an undocumented variable"
|
||||
msgstr "la valeur d'une variable non documentée"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:597
|
||||
#: src/rougail/output_doc/doc.py:599
|
||||
msgid "the values of undocumented variables"
|
||||
msgstr "les valeurs de variables non documentées"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:604
|
||||
#: src/rougail/output_doc/doc.py:606
|
||||
msgid "the value of the identifier"
|
||||
msgstr "la valeur de l'identifiant"
|
||||
|
||||
#: src/rougail/output_doc/doc.py:608
|
||||
#: src/rougail/output_doc/doc.py:610
|
||||
msgid "the value of the {0}"
|
||||
msgstr "la valeur de l'{0}"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2025-03-31 09:15+0200\n"
|
||||
"POT-Creation-Date: 2025-04-01 19:41+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -119,39 +119,39 @@ msgstr ""
|
|||
msgid "No attribute \"description\" for \"{0}\" in {1}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:463
|
||||
#: src/rougail/output_doc/doc.py:465
|
||||
msgid "(default)"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:470
|
||||
#: src/rougail/output_doc/doc.py:472
|
||||
msgid "text based with regular expressions \"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:558
|
||||
#: src/rougail/output_doc/doc.py:560
|
||||
msgid "depends on a calculation"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:559
|
||||
#: src/rougail/output_doc/doc.py:561
|
||||
msgid "\"{0}\" is a calculation for {1} but has no description in {2}"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:581
|
||||
#: src/rougail/output_doc/doc.py:583
|
||||
msgid "the value of the variable \"{0}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:582
|
||||
#: src/rougail/output_doc/doc.py:584
|
||||
msgid "the value of an undocumented variable"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:597
|
||||
#: src/rougail/output_doc/doc.py:599
|
||||
msgid "the values of undocumented variables"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:604
|
||||
#: src/rougail/output_doc/doc.py:606
|
||||
msgid "the value of the identifier"
|
||||
msgstr ""
|
||||
|
||||
#: src/rougail/output_doc/doc.py:608
|
||||
#: src/rougail/output_doc/doc.py:610
|
||||
msgid "the value of the {0}"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ class RougailOutputDoc(Examples):
|
|||
informations["names"] = [obj.name()]
|
||||
description = obj.description(uncalculated=True)
|
||||
if obj.name(uncalculated=True) == description and (
|
||||
not obj.isoptiondescription() or obj.group_type() is not groups.namespace
|
||||
not obj.isoptiondescription() or (self.support_namespace and obj.group_type() is not groups.namespace)
|
||||
):
|
||||
warning = _('No attribute "description" for "{0}" in {1}').format(
|
||||
obj.path(uncalculated=True),
|
||||
|
|
Binary file not shown.
|
@ -67,7 +67,7 @@ This family builds families dynamically.
|
|||
| Variable | Description
|
||||
|
|
||||
|
||||
**var__example__.var** +
|
||||
**var___example__.var** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `mandatory` |
|
||||
A variable.
|
||||
|====
|
||||
|
|
|
@ -50,10 +50,10 @@ var8:
|
|||
description: my var8
|
||||
choices:
|
||||
jinja: |
|
||||
a.unknown.variable
|
||||
{{ a.unknown.variable }}
|
||||
description: the a.unknown.variable values
|
||||
|
||||
"var{{ identifier }}":
|
||||
"var_{{ identifier }}":
|
||||
description: my var6
|
||||
dynamic:
|
||||
variable: a.unknown.variable
|
||||
|
|
27
tests/results/test/00_6choice_link.adoc
Normal file
27
tests/results/test/00_6choice_link.adoc
Normal file
|
@ -0,0 +1,27 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `basic` `mandatory` |
|
||||
The first variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
The second variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
||||
**Default**: the value of the variable "var1".
|
||||
|====
|
||||
|
65
tests/results/test/00_6choice_link.json
Normal file
65
tests/results/test/00_6choice_link.json
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"The first variable."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"var1\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"The second variable."
|
||||
]
|
||||
}
|
||||
}
|
5
tests/results/test/00_6choice_link.md
Normal file
5
tests/results/test/00_6choice_link.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | The first variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c |
|
||||
| **var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | The second variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c<br/>**Default**: the value of the variable "var1". |
|
||||
|
17
tests/results/test/00_6choice_link.sh
Normal file
17
tests/results/test/00_6choice_link.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ The first variable. │
|
||||
│ [1;7m choice [0m [1;7m basic [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ The second variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
29
tests/results/test/00_6choice_variable_link.adoc
Normal file
29
tests/results/test/00_6choice_variable_link.adoc
Normal file
|
@ -0,0 +1,29 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Choices**: the value of the variable "var1". +
|
||||
**Default**: a
|
||||
|
|
||||
|
||||
**var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A third variable. +
|
||||
**Choices**: the value of the variable "var1". +
|
||||
**Default**: the value of the variable "var2".
|
||||
|====
|
||||
|
97
tests/results/test/00_6choice_variable_link.json
Normal file
97
tests/results/test/00_6choice_variable_link.json
Normal file
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"default": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": "a",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"var1\".",
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"var3": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"var2\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"var1\".",
|
||||
"paths": [
|
||||
"var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A third variable."
|
||||
]
|
||||
}
|
||||
}
|
6
tests/results/test/00_6choice_variable_link.md
Normal file
6
tests/results/test/00_6choice_variable_link.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Choices**: the value of the variable "var1".<br/>**Default**: a |
|
||||
| **var3**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A third variable.<br/>**Choices**: the value of the variable "var1".<br/>**Default**: the value of the variable "var2". |
|
||||
|
20
tests/results/test/00_6choice_variable_link.sh
Normal file
20
tests/results/test/00_6choice_variable_link.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ A first variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "var1". │
|
||||
│ │ [1mDefault[0m: a │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar3[0m │ A third variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "var1". │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "var2". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
38
tests/results/test/00_6choice_variable_link2.adoc
Normal file
38
tests/results/test/00_6choice_variable_link2.adoc
Normal file
|
@ -0,0 +1,38 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Choices**: the value of the variable "var1". +
|
||||
**Default**: a
|
||||
|====
|
||||
|
||||
== family
|
||||
|
||||
`standard`
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**family.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A third variable. +
|
||||
**Choices**: the value of the variable "family.var1". +
|
||||
**Default**: the value of the variable "var2".
|
||||
|====
|
||||
|
116
tests/results/test/00_6choice_variable_link2.json
Normal file
116
tests/results/test/00_6choice_variable_link2.json
Normal file
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"default": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": "a",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"var1\".",
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"family": {
|
||||
"type": "family",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"family"
|
||||
],
|
||||
"names": [
|
||||
"family"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"family.var3": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"var2\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"family.var1\".",
|
||||
"paths": [
|
||||
"family.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A third variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
tests/results/test/00_6choice_variable_link2.md
Normal file
13
tests/results/test/00_6choice_variable_link2.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Choices**: the value of the variable "var1".<br/>**Default**: a |
|
||||
|
||||
# family
|
||||
|
||||
`standard`
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **family.var3**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A third variable.<br/>**Choices**: the value of the variable "family.var1".<br/>**Default**: the value of the variable "var2". |
|
||||
|
31
tests/results/test/00_6choice_variable_link2.sh
Normal file
31
tests/results/test/00_6choice_variable_link2.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ A first variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "var1". │
|
||||
│ │ [1mDefault[0m: a │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
||||
|
||||
[1;4;96mfamily[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mfamily.var3[0m │ A third variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "family.var1". │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "var2". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
23
tests/results/test/00_6regexp_link.adoc
Normal file
23
tests/results/test/00_6regexp_link.adoc
Normal file
|
@ -0,0 +1,23 @@
|
|||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[regexp]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$" +
|
||||
**Default**: #a1a1a1 +
|
||||
**Examples**:
|
||||
|
||||
* '#b1b1b1'
|
||||
* '#b2b2b2'
|
||||
|
|
||||
|
||||
**var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[regexp]` `standard` `mandatory` |
|
||||
A second variable. +
|
||||
**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$" +
|
||||
**Default**: the value of the variable "var1".
|
||||
|====
|
||||
|
66
tests/results/test/00_6regexp_link.json
Normal file
66
tests/results/test/00_6regexp_link.json
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"var1": {
|
||||
"type": "variable",
|
||||
"default": "#a1a1a1",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "regexp"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": [
|
||||
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
|
||||
],
|
||||
"paths": [
|
||||
"var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
],
|
||||
"examples": [
|
||||
"#b1b1b1",
|
||||
"#b2b2b2"
|
||||
]
|
||||
},
|
||||
"var2": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"var1\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "regexp"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": [
|
||||
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
|
||||
],
|
||||
"paths": [
|
||||
"var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
}
|
||||
}
|
5
tests/results/test/00_6regexp_link.md
Normal file
5
tests/results/test/00_6regexp_link.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **var1**<br/>[`regexp`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$"<br/>**Default**: #a1a1a1<br/>**Examples**: <br/>- #b1b1b1<br/>- #b2b2b2 |
|
||||
| **var2**<br/>[`regexp`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second variable.<br/>**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$"<br/>**Default**: the value of the variable "var1". |
|
||||
|
19
tests/results/test/00_6regexp_link.sh
Normal file
19
tests/results/test/00_6regexp_link.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mvar1[0m │ A first variable. │
|
||||
│ [1;7m regexp [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: text based with regular │
|
||||
│ │ expressions │
|
||||
│ │ "^#(?:[0-9a-f]{3}){1,2}$" │
|
||||
│ │ [1mDefault[0m: #a1a1a1 │
|
||||
│ │ [1mExamples[0m: │
|
||||
│ │ - #b1b1b1 │
|
||||
│ │ - #b2b2b2 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mvar2[0m │ A second variable. │
|
||||
│ [1;7m regexp [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: text based with regular │
|
||||
│ │ expressions │
|
||||
│ │ "^#(?:[0-9a-f]{3}){1,2}$" │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
13
tests/results/test_examples/00_6choice_link.md
Normal file
13
tests/results/test_examples/00_6choice_link.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Example with mandatory variables not filled in
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1: a_choice
|
||||
```
|
||||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1: a_choice
|
||||
var2: a_choice
|
||||
```
|
11
tests/results/test_examples/00_6choice_variable_link.md
Normal file
11
tests/results/test_examples/00_6choice_variable_link.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1:
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a
|
||||
var3: a
|
||||
```
|
12
tests/results/test_examples/00_6choice_variable_link2.md
Normal file
12
tests/results/test_examples/00_6choice_variable_link2.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1:
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a
|
||||
family:
|
||||
var3: a
|
||||
```
|
7
tests/results/test_examples/00_6regexp_link.md
Normal file
7
tests/results/test_examples/00_6regexp_link.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
var1: '#b1b1b1'
|
||||
var2: '#a1a1a1'
|
||||
```
|
29
tests/results/test_namespace/00_6choice_link.adoc
Normal file
29
tests/results/test_namespace/00_6choice_link.adoc
Normal file
|
@ -0,0 +1,29 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `basic` `mandatory` |
|
||||
The first variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
The second variable. +
|
||||
**Choices**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
||||
**Default**: the value of the variable "rougail.var1".
|
||||
|====
|
||||
|
85
tests/results/test_namespace/00_6choice_link.json
Normal file
85
tests/results/test_namespace/00_6choice_link.json
Normal file
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "basic"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"The first variable."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"rougail.var1\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"The second variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
tests/results/test_namespace/00_6choice_link.md
Normal file
7
tests/results/test_namespace/00_6choice_link.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | The first variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c |
|
||||
| **rougail.var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | The second variable.<br/>**Choices**: <br/>- a<br/>- b<br/>- c<br/>**Default**: the value of the variable "rougail.var1". |
|
||||
|
22
tests/results/test_namespace/00_6choice_link.sh
Normal file
22
tests/results/test_namespace/00_6choice_link.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ The first variable. │
|
||||
│ [1;7m choice [0m [1;7m basic [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ The second variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: │
|
||||
│ │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "rougail.var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
31
tests/results/test_namespace/00_6choice_variable_link.adoc
Normal file
31
tests/results/test_namespace/00_6choice_variable_link.adoc
Normal file
|
@ -0,0 +1,31 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Choices**: the value of the variable "rougail.var1". +
|
||||
**Default**: a
|
||||
|
|
||||
|
||||
**rougail.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A third variable. +
|
||||
**Choices**: the value of the variable "rougail.var1". +
|
||||
**Default**: the value of the variable "rougail.var2".
|
||||
|====
|
||||
|
117
tests/results/test_namespace/00_6choice_variable_link.json
Normal file
117
tests/results/test_namespace/00_6choice_variable_link.json
Normal file
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"default": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": "a",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"rougail.var1\".",
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"rougail.var3": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"rougail.var2\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"rougail.var1\".",
|
||||
"paths": [
|
||||
"rougail.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A third variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8
tests/results/test_namespace/00_6choice_variable_link.md
Normal file
8
tests/results/test_namespace/00_6choice_variable_link.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **rougail.var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Choices**: the value of the variable "rougail.var1".<br/>**Default**: a |
|
||||
| **rougail.var3**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A third variable.<br/>**Choices**: the value of the variable "rougail.var1".<br/>**Default**: the value of the variable "rougail.var2". |
|
||||
|
25
tests/results/test_namespace/00_6choice_variable_link.sh
Normal file
25
tests/results/test_namespace/00_6choice_variable_link.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ A first variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "rougail.var1". │
|
||||
│ │ [1mDefault[0m: a │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var3[0m │ A third variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "rougail.var1". │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "rougail.var2". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
40
tests/results/test_namespace/00_6choice_variable_link2.adoc
Normal file
40
tests/results/test_namespace/00_6choice_variable_link2.adoc
Normal file
|
@ -0,0 +1,40 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||||
A second variable. +
|
||||
**Default**:
|
||||
|
||||
* a
|
||||
* b
|
||||
* c
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Choices**: the value of the variable "rougail.var1". +
|
||||
**Default**: a
|
||||
|====
|
||||
|
||||
=== rougail.family
|
||||
|
||||
`standard`
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.family.var3** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
|
||||
A third variable. +
|
||||
**Choices**: the value of the variable "rougail.family.var1". +
|
||||
**Default**: the value of the variable "rougail.var2".
|
||||
|====
|
||||
|
136
tests/results/test_namespace/00_6choice_variable_link2.json
Normal file
136
tests/results/test_namespace/00_6choice_variable_link2.json
Normal file
|
@ -0,0 +1,136 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"default": [
|
||||
"a",
|
||||
"b",
|
||||
"c"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "string"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "unique"
|
||||
},
|
||||
{
|
||||
"type": "multiple",
|
||||
"name": "multiple"
|
||||
}
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": "a",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"rougail.var1\".",
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
]
|
||||
},
|
||||
"family": {
|
||||
"type": "family",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail.family"
|
||||
],
|
||||
"names": [
|
||||
"family"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.family.var3": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"rougail.var2\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "choice"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"choices": "the value of the variable \"rougail.family.var1\".",
|
||||
"paths": [
|
||||
"rougail.family.var3"
|
||||
],
|
||||
"names": [
|
||||
"var3"
|
||||
],
|
||||
"descriptions": [
|
||||
"A third variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
tests/results/test_namespace/00_6choice_variable_link2.md
Normal file
15
tests/results/test_namespace/00_6choice_variable_link2.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A second variable.<br/>**Default**: <br/>- a<br/>- b<br/>- c |
|
||||
| **rougail.var2**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Choices**: the value of the variable "rougail.var1".<br/>**Default**: a |
|
||||
|
||||
## rougail.family
|
||||
|
||||
`standard`
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.family.var3**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A third variable.<br/>**Choices**: the value of the variable "rougail.family.var1".<br/>**Default**: the value of the variable "rougail.var2". |
|
||||
|
36
tests/results/test_namespace/00_6choice_variable_link2.sh
Normal file
36
tests/results/test_namespace/00_6choice_variable_link2.sh
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ A second variable. │
|
||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m [1;7m [0m │ [1mDefault[0m: │
|
||||
│ [1;7munique [0m [1;7m multiple [0m │ - a │
|
||||
│ │ - b │
|
||||
│ │ - c │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ A first variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "rougail.var1". │
|
||||
│ │ [1mDefault[0m: a │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
||||
|
||||
[1;4;92mrougail.family[0m
|
||||
|
||||
|
||||
[1;7m standard [0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.family.var3[0m │ A third variable. │
|
||||
│ [1;7m choice [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mChoices[0m: the value of the variable │
|
||||
│ │ "rougail.family.var1". │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "rougail.var2". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
25
tests/results/test_namespace/00_6regexp_link.adoc
Normal file
25
tests/results/test_namespace/00_6regexp_link.adoc
Normal file
|
@ -0,0 +1,25 @@
|
|||
== Variables for "Rougail"
|
||||
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
|
|
||||
|
||||
**rougail.var1** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[regexp]` `standard` `mandatory` |
|
||||
A first variable. +
|
||||
**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$" +
|
||||
**Default**: #a1a1a1 +
|
||||
**Examples**:
|
||||
|
||||
* '#b1b1b1'
|
||||
* '#b2b2b2'
|
||||
|
|
||||
|
||||
**rougail.var2** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[regexp]` `standard` `mandatory` |
|
||||
A second variable. +
|
||||
**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$" +
|
||||
**Default**: the value of the variable "rougail.var1".
|
||||
|====
|
||||
|
86
tests/results/test_namespace/00_6regexp_link.json
Normal file
86
tests/results/test_namespace/00_6regexp_link.json
Normal file
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"rougail": {
|
||||
"type": "namespace",
|
||||
"informations": {
|
||||
"paths": [
|
||||
"rougail"
|
||||
],
|
||||
"names": [
|
||||
"rougail"
|
||||
],
|
||||
"description": "Rougail",
|
||||
"properties": [
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": {
|
||||
"rougail.var1": {
|
||||
"type": "variable",
|
||||
"default": "#a1a1a1",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "regexp"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": [
|
||||
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var1"
|
||||
],
|
||||
"names": [
|
||||
"var1"
|
||||
],
|
||||
"descriptions": [
|
||||
"A first variable."
|
||||
],
|
||||
"examples": [
|
||||
"#b1b1b1",
|
||||
"#b2b2b2"
|
||||
]
|
||||
},
|
||||
"rougail.var2": {
|
||||
"type": "variable",
|
||||
"default": "the value of the variable \"rougail.var1\".",
|
||||
"properties": [
|
||||
{
|
||||
"type": "type",
|
||||
"name": "regexp"
|
||||
},
|
||||
{
|
||||
"type": "mode",
|
||||
"name": "standard"
|
||||
},
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory"
|
||||
}
|
||||
],
|
||||
"validators": [
|
||||
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
|
||||
],
|
||||
"paths": [
|
||||
"rougail.var2"
|
||||
],
|
||||
"names": [
|
||||
"var2"
|
||||
],
|
||||
"descriptions": [
|
||||
"A second variable."
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
tests/results/test_namespace/00_6regexp_link.md
Normal file
7
tests/results/test_namespace/00_6regexp_link.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Variables for "Rougail"
|
||||
|
||||
| Variable | Description |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **rougail.var1**<br/>[`regexp`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first variable.<br/>**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$"<br/>**Default**: #a1a1a1<br/>**Examples**: <br/>- #b1b1b1<br/>- #b2b2b2 |
|
||||
| **rougail.var2**<br/>[`regexp`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second variable.<br/>**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$"<br/>**Default**: the value of the variable "rougail.var1". |
|
||||
|
24
tests/results/test_namespace/00_6regexp_link.sh
Normal file
24
tests/results/test_namespace/00_6regexp_link.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
|
||||
[1;4;96mVariables for [0m[1;4;96m"Rougail"[0m
|
||||
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1mrougail.var1[0m │ A first variable. │
|
||||
│ [1;7m regexp [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: text based with regular │
|
||||
│ │ expressions │
|
||||
│ │ "^#(?:[0-9a-f]{3}){1,2}$" │
|
||||
│ │ [1mDefault[0m: #a1a1a1 │
|
||||
│ │ [1mExamples[0m: │
|
||||
│ │ - #b1b1b1 │
|
||||
│ │ - #b2b2b2 │
|
||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
||||
│ [1mrougail.var2[0m │ A second variable. │
|
||||
│ [1;7m regexp [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mValidator[0m: text based with regular │
|
||||
│ │ expressions │
|
||||
│ │ "^#(?:[0-9a-f]{3}){1,2}$" │
|
||||
│ │ [1mDefault[0m: the value of the variable │
|
||||
│ │ "rougail.var1". │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
15
tests/results/test_namespace_examples/00_6choice_link.md
Normal file
15
tests/results/test_namespace_examples/00_6choice_link.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Example with mandatory variables not filled in
|
||||
|
||||
```yaml
|
||||
---
|
||||
rougail:
|
||||
var1: a_choice
|
||||
```
|
||||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
rougail:
|
||||
var1: a_choice
|
||||
var2: a_choice
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
rougail:
|
||||
var1:
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a
|
||||
var3: a
|
||||
```
|
|
@ -0,0 +1,13 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
rougail:
|
||||
var1:
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
var2: a
|
||||
family:
|
||||
var3: a
|
||||
```
|
8
tests/results/test_namespace_examples/00_6regexp_link.md
Normal file
8
tests/results/test_namespace_examples/00_6regexp_link.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Example with all variables modifiable
|
||||
|
||||
```yaml
|
||||
---
|
||||
rougail:
|
||||
var1: '#b1b1b1'
|
||||
var2: '#a1a1a1'
|
||||
```
|
Loading…
Reference in a new issue