Compare commits
No commits in common. "0024c2cb2adf6ab4e0397c4d967bc5ecfc71c619" and "20b475c5f2df0c7df8f65af4c62aa4f347fc7bc8" have entirely different histories.
0024c2cb2a
...
20b475c5f2
9 changed files with 6 additions and 161 deletions
|
|
@ -273,7 +273,7 @@ class Annotator(Walk):
|
|||
"value": value,
|
||||
}
|
||||
if isinstance(values, (VariableCalculation, VariablePropertyCalculation)):
|
||||
variable_path = self.get_path_from_variable(values, version, path)
|
||||
variable_path = self.get_path_from_variable(values, version, values.path)
|
||||
value = self.calculation_to_information_variable(
|
||||
variable_path, values, prop, version, path
|
||||
)
|
||||
|
|
|
|||
|
|
@ -117,10 +117,6 @@ class RougailOutputDoc(Examples, Changelog):
|
|||
self.property_to_string = get_properties_to_string()
|
||||
self.outputs = OutPuts().get()
|
||||
self.dynamic_paths = {}
|
||||
if not self.config.isoptiondescription():
|
||||
informations = {}
|
||||
self.parse_variable(self.config, None, informations)
|
||||
else:
|
||||
config = self.config.unrestraint
|
||||
self.populate_dynamics(config=config)
|
||||
informations = self.parse_families(config)
|
||||
|
|
@ -133,7 +129,6 @@ class RougailOutputDoc(Examples, Changelog):
|
|||
for path in self.config.path().split('.'):
|
||||
family = family.option(path)
|
||||
name = family.name(uncalculated=True)
|
||||
if family.isoptiondescription():
|
||||
infos[name] = self.get_root_family(family)
|
||||
infos = infos[name]["children"]
|
||||
infos.update(informations)
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
== First family
|
||||
|
||||
====
|
||||
**🛈 Informations**
|
||||
|
||||
**Path**: a_family
|
||||
====
|
||||
=== A second family
|
||||
|
||||
====
|
||||
**🛈 Informations**
|
||||
|
||||
**Path**: a_family.a_second_family
|
||||
====
|
||||
[cols="1a,1a"]
|
||||
|====
|
||||
| Variable | Description
|
||||
| **a_family.a_second_family.a_variable** +
|
||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `mandatory` | A boolean variable. +
|
||||
**Default**: true
|
||||
|====
|
||||
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<details><summary>First family</summary>
|
||||
|
||||
> [!note] 🛈 Informations
|
||||
> **Path**: a_family
|
||||
|
||||
<details><summary>A second family</summary>
|
||||
|
||||
> [!note] 🛈 Informations
|
||||
> **Path**: a_family.a_second_family
|
||||
|
||||
| Variable | Description |
|
||||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
|
||||
| **<a id="a_family.a_second_family.a_variable" name="a_family.a_second_family.a_variable">a_family.a_second_family.a_variable</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | A boolean variable.<br/>**Default**: true |
|
||||
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<h1>First family</h1>
|
||||
|
||||
<b>Path</b>: a_family
|
||||
|
||||
<h2>A second family</h2>
|
||||
|
||||
<b>Path</b>: a_family.a_second_family
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Variable </th><th>Description </th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><b>a_family.a_second_family.a_variable</b><br/><mark><a href='https://rougail.readthedocs.io/en/latest/variable.html#variables-types'>boolean</a></mark> <mark>mandatory</mark></td><td>A boolean variable.<br/><b>Default</b>: true</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
"a_family": {
|
||||
"type": "family",
|
||||
"informations": {
|
||||
"path": "a_family",
|
||||
"names": [
|
||||
"a_family"
|
||||
],
|
||||
"description": "First family",
|
||||
"properties": []
|
||||
},
|
||||
"children": {
|
||||
"a_second_family": {
|
||||
"type": "family",
|
||||
"informations": {
|
||||
"path": "a_family.a_second_family",
|
||||
"names": [
|
||||
"a_second_family"
|
||||
],
|
||||
"description": "A second family",
|
||||
"properties": []
|
||||
},
|
||||
"children": {
|
||||
"a_variable": {
|
||||
"type": "variable",
|
||||
"default": {
|
||||
"name": "Default",
|
||||
"values": true
|
||||
},
|
||||
"variable_type": "boolean",
|
||||
"path": "a_family.a_second_family.a_variable",
|
||||
"names": [
|
||||
"a_variable"
|
||||
],
|
||||
"description": "A boolean variable.",
|
||||
"properties": [
|
||||
{
|
||||
"type": "property",
|
||||
"name": "mandatory",
|
||||
"ori_name": "mandatory",
|
||||
"access_control": false
|
||||
}
|
||||
],
|
||||
"gen_examples": [
|
||||
true
|
||||
],
|
||||
"mandatory_without_value": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# First family
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Path**: a_family
|
||||
|
||||
## A second family
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> **Path**: a_family.a_second_family
|
||||
|
||||
| Variable | Description |
|
||||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
|
||||
| **<a id="a_family.a_second_family.a_variable" name="a_family.a_second_family.a_variable">a_family.a_second_family.a_variable</a>**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` | A boolean variable.<br/>**Default**: true |
|
||||
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[1;4;96mFirst family[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1mPath[0m: a_family
|
||||
|
||||
[1;4;92mA second family[0m
|
||||
|
||||
[34m▌ [0m[1;34m🛈 Informations[0m
|
||||
[34m▌ [0m
|
||||
[34m▌ [0m[1mPath[0m: a_family.a_second_family
|
||||
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||
│ [1ma_family.a_second_family.a_variable[0m │ A boolean variable. │
|
||||
│ [1;7m boolean [0m [1;7m mandatory [0m │ [1mDefault[0m: true │
|
||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
||||
|
||||
|
||||
|
|
@ -50,10 +50,6 @@ def test_root_sub():
|
|||
_test_root('a_family.an_other_family')
|
||||
|
||||
|
||||
def test_root_variable():
|
||||
_test_root('a_family.a_second_family.a_variable')
|
||||
|
||||
|
||||
def test_root_changelog():
|
||||
_test_root('a_family', "changelog")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue