Compare commits

..

No commits in common. "0024c2cb2adf6ab4e0397c4d967bc5ecfc71c619" and "20b475c5f2df0c7df8f65af4c62aa4f347fc7bc8" have entirely different histories.

9 changed files with 6 additions and 161 deletions

View file

@ -273,7 +273,7 @@ class Annotator(Walk):
"value": value, "value": value,
} }
if isinstance(values, (VariableCalculation, VariablePropertyCalculation)): 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( value = self.calculation_to_information_variable(
variable_path, values, prop, version, path variable_path, values, prop, version, path
) )

View file

@ -117,10 +117,6 @@ class RougailOutputDoc(Examples, Changelog):
self.property_to_string = get_properties_to_string() self.property_to_string = get_properties_to_string()
self.outputs = OutPuts().get() self.outputs = OutPuts().get()
self.dynamic_paths = {} self.dynamic_paths = {}
if not self.config.isoptiondescription():
informations = {}
self.parse_variable(self.config, None, informations)
else:
config = self.config.unrestraint config = self.config.unrestraint
self.populate_dynamics(config=config) self.populate_dynamics(config=config)
informations = self.parse_families(config) informations = self.parse_families(config)
@ -133,7 +129,6 @@ class RougailOutputDoc(Examples, Changelog):
for path in self.config.path().split('.'): for path in self.config.path().split('.'):
family = family.option(path) family = family.option(path)
name = family.name(uncalculated=True) name = family.name(uncalculated=True)
if family.isoptiondescription():
infos[name] = self.get_root_family(family) infos[name] = self.get_root_family(family)
infos = infos[name]["children"] infos = infos[name]["children"]
infos.update(informations) infos.update(informations)

View file

@ -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
|====

View file

@ -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>

View file

@ -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>

View file

@ -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
}
}
}
}
}
}

View file

@ -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 |

View file

@ -1,20 +0,0 @@
First family
▌ 🛈 Informations
▌ 
▌ Path: a_family
A second family
▌ 🛈 Informations
▌ 
▌ Path: a_family.a_second_family
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 Variable  ┃ Description  ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
a_family.a_second_family.a_variable │ A boolean variable. │
 boolean   mandatory  │ Default: true
└───────────────────────────────────────┴──────────────────────────────────────┘

View file

@ -50,10 +50,6 @@ def test_root_sub():
_test_root('a_family.an_other_family') _test_root('a_family.an_other_family')
def test_root_variable():
_test_root('a_family.a_second_family.a_variable')
def test_root_changelog(): def test_root_changelog():
_test_root('a_family', "changelog") _test_root('a_family', "changelog")