Compare commits
No commits in common. "1364083ffba1582da1ae15cd52e896a38bbde1a4" and "97a8653b28ff05267a82fc28cfc9ffdd7fb962a0" have entirely different histories.
1364083ffb
...
97a8653b28
12 changed files with 5 additions and 322 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
## 0.2.0a9 (2025-02-19)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- support suffix (in version 1.0 format) in calculation
|
|
||||||
|
|
||||||
## 0.2.0a8 (2025-02-19)
|
## 0.2.0a8 (2025-02-19)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_doc"
|
name = "rougail.output_doc"
|
||||||
version = "0.2.0a9"
|
version = "0.2.0a8"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail output doc"
|
description = "Rougail output doc"
|
||||||
|
|
|
||||||
|
|
@ -328,6 +328,4 @@ class Annotator(Walk):
|
||||||
variable_path,
|
variable_path,
|
||||||
path,
|
path,
|
||||||
)
|
)
|
||||||
elif version == '1.0' and '{{ suffix }}' in variable_path:
|
|
||||||
variable_path = variable_path.replace("{{ suffix }}", "{{ identifier }}")
|
|
||||||
return variable_path
|
return variable_path
|
||||||
|
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
== Variables for "Rougail"
|
|
||||||
|
|
||||||
[cols="1a,1a"]
|
|
||||||
|====
|
|
||||||
| Variable | Description
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.var** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
|
||||||
A suffix variable. +
|
|
||||||
**Default**:
|
|
||||||
|
|
||||||
* val1
|
|
||||||
* val2
|
|
||||||
|====
|
|
||||||
|
|
||||||
=== a dynamic family
|
|
||||||
|
|
||||||
`standard`
|
|
||||||
|
|
||||||
This family builds families dynamically.
|
|
||||||
|
|
||||||
**Identifiers**: the value of the variable "rougail.var".
|
|
||||||
|
|
||||||
[cols="1a,1a"]
|
|
||||||
|====
|
|
||||||
| Variable | Description
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.my_dyn_family___val1__.var** +
|
|
||||||
**rougail.my_dyn_family___val2__.var** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
|
|
||||||
A variable inside a dynamic family. +
|
|
||||||
**Default**: the value of the identifier.
|
|
||||||
|====
|
|
||||||
|
|
||||||
[cols="1a,1a"]
|
|
||||||
|====
|
|
||||||
| Variable | Description
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.var2** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
|
||||||
A variable. +
|
|
||||||
**Default**:
|
|
||||||
|
|
||||||
* the value of the variable "rougail.my_dyn_family___val1__.var"
|
|
||||||
* the value of the variable "rougail.my_dyn_family___val2__.var"
|
|
||||||
|====
|
|
||||||
|
|
||||||
|
|
@ -1,149 +0,0 @@
|
||||||
{
|
|
||||||
"rougail": {
|
|
||||||
"type": "namespace",
|
|
||||||
"informations": {
|
|
||||||
"paths": [
|
|
||||||
"rougail"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"rougail"
|
|
||||||
],
|
|
||||||
"description": "Rougail",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"children": {
|
|
||||||
"rougail.var": {
|
|
||||||
"type": "variable",
|
|
||||||
"default": [
|
|
||||||
"val1",
|
|
||||||
"val2"
|
|
||||||
],
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "unique"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "multiple",
|
|
||||||
"name": "multiple"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"rougail.var"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A suffix variable."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"my_dyn_family_{{ identifier }}": {
|
|
||||||
"type": "dynamic",
|
|
||||||
"informations": {
|
|
||||||
"paths": [
|
|
||||||
"rougail.my_dyn_family_val1",
|
|
||||||
"rougail.my_dyn_family_val2"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"my_dyn_family_val1",
|
|
||||||
"my_dyn_family_val2"
|
|
||||||
],
|
|
||||||
"description": "a dynamic family",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"identifiers": "the value of the variable \"rougail.var\".",
|
|
||||||
"help": [
|
|
||||||
"This family builds families dynamically."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"children": {
|
|
||||||
"rougail.my_dyn_family_{{ identifier }}.var": {
|
|
||||||
"paths": [
|
|
||||||
"rougail.my_dyn_family_val1.var",
|
|
||||||
"rougail.my_dyn_family_val2.var"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var",
|
|
||||||
"var"
|
|
||||||
],
|
|
||||||
"type": "variable",
|
|
||||||
"default": "the value of the identifier.",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A variable inside a dynamic family."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rougail.var2": {
|
|
||||||
"type": "variable",
|
|
||||||
"default": [
|
|
||||||
"the value of the variable \"rougail.my_dyn_family_val1.var\"",
|
|
||||||
"the value of the variable \"rougail.my_dyn_family_val2.var\""
|
|
||||||
],
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "unique"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "multiple",
|
|
||||||
"name": "multiple"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"rougail.var2"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var2"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A variable."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
gitea: none
|
|
||||||
include_toc: true
|
|
||||||
---
|
|
||||||
# Variables for "Rougail"
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **rougail.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A suffix variable.<br/>**Default**: <br/>- val1<br/>- val2 |
|
|
||||||
|
|
||||||
## a dynamic family
|
|
||||||
|
|
||||||
`standard`
|
|
||||||
|
|
||||||
This family builds families dynamically.
|
|
||||||
|
|
||||||
**Identifiers**: the value of the variable "rougail.var".
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **rougail.my_dyn_family_*val1*.var**<br/>**rougail.my_dyn_family_*val2*.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` | A variable inside a dynamic family.<br/>**Default**: the value of the identifier. |
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **rougail.var2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` `unique` `multiple` | A variable.<br/>**Default**: <br/>- the value of the variable "rougail.my_dyn_family_*val1*.var"<br/>- the value of the variable "rougail.my_dyn_family_*val2*.var" |
|
|
||||||
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
||||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
||||||
┃ [1mVariables for "Rougail"[0m ┃
|
|
||||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[1m [0m[1mVariable [0m[1m [0m [1m [0m[1mDescription [0m[1m [0m
|
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
[1mrougail.var[0m
|
|
||||||
[1;36;40mstring[0m [1;36;40mstandard[0m [1;36;40mmandatory[0m [1;36;40munique[0m A suffix variable.
|
|
||||||
[1;36;40mmultiple[0m
|
|
||||||
[1mDefault[0m:
|
|
||||||
|
|
||||||
|
|
||||||
[1;33m • [0mval1
|
|
||||||
[1;33m • [0mval2
|
|
||||||
[1;33m [0m|
|
|
||||||
|
|
||||||
|
|
||||||
[1;4ma dynamic family[0m
|
|
||||||
|
|
||||||
[1;36;40mstandard[0m
|
|
||||||
|
|
||||||
This family builds families dynamically.
|
|
||||||
|
|
||||||
[1mIdentifiers[0m: the value of the variable "rougail.var".
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[1m [0m[1mVariable [0m[1m [0m [1m [0m[1mDescription [0m[1m [0m
|
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
[1mrougail.my_dyn_family_[0m[1;3mval1[0m[1m.var[0m
|
|
||||||
[1mrougail.my_dyn_family_[0m[1;3mval2[0m[1m.var[0m
|
|
||||||
[1;36;40mstring[0m [1;36;40mstandard[0m A variable inside a dynamic family.
|
|
||||||
[1mDefault[0m: the value of the
|
|
||||||
identifier.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[1m [0m[1mVariable [0m[1m [0m [1m [0m[1mDescription [0m[1m [0m
|
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
[1mrougail.var2[0m
|
|
||||||
[1;36;40mstring[0m [1;36;40mstandard[0m [1;36;40mmandatory[0m [1;36;40munique[0m A variable.
|
|
||||||
[1;36;40mmultiple[0m
|
|
||||||
[1mDefault[0m:
|
|
||||||
|
|
||||||
|
|
||||||
[1;33m • [0mthe value of the variable "rougail.my_dyn_family_[3mval1[0m.var"
|
|
||||||
[1;33m • [0mthe value of the variable "rougail.my_dyn_family_[3mval2[0m.var"
|
|
||||||
[1;33m [0m|
|
|
||||||
|
|
@ -40,10 +40,7 @@ A dynamic variable. +
|
||||||
|
|
||||||
This family builds families dynamically.
|
This family builds families dynamically.
|
||||||
|
|
||||||
**Identifiers**:
|
**Identifiers**: the value of the variable "rougail.dyn{{ suffix }}.var".
|
||||||
|
|
||||||
* the value of the variable "rougail.dyn__val1__.var"
|
|
||||||
* the value of the variable "rougail.dyn__val2__.var"
|
|
||||||
|
|
||||||
[cols="1a,1a"]
|
[cols="1a,1a"]
|
||||||
|====
|
|====
|
||||||
|
|
|
||||||
|
|
@ -138,10 +138,7 @@
|
||||||
"name": "standard"
|
"name": "standard"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"identifiers": [
|
"identifiers": "the value of the variable \"rougail.dyn{{ suffix }}.var\".",
|
||||||
"the value of the variable \"rougail.dynval1.var\"",
|
|
||||||
"the value of the variable \"rougail.dynval2.var\""
|
|
||||||
],
|
|
||||||
"help": [
|
"help": [
|
||||||
"This family builds families dynamically."
|
"This family builds families dynamically."
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ This family builds families dynamically.
|
||||||
|
|
||||||
This family builds families dynamically.
|
This family builds families dynamically.
|
||||||
|
|
||||||
**Identifiers**: <br/>- the value of the variable "rougail.dyn*val1*.var"<br/>- the value of the variable "rougail.dyn*val2*.var"
|
**Identifiers**: the value of the variable "rougail.dyn{{ suffix }}.var".
|
||||||
|
|
||||||
| Variable | Description |
|
| Variable | Description |
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,7 @@ This family builds families dynamically.
|
||||||
|
|
||||||
This family builds families dynamically.
|
This family builds families dynamically.
|
||||||
|
|
||||||
[1mIdentifiers[0m:
|
[1mIdentifiers[0m: the value of the variable "rougail.dyn{{ suffix }}.var".
|
||||||
|
|
||||||
[1;33m • [0mthe value of the variable "rougail.dyn[3mval1[0m.var"
|
|
||||||
[1;33m • [0mthe value of the variable "rougail.dyn[3mval2[0m.var"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
gitea: none
|
|
||||||
include_toc: true
|
|
||||||
---
|
|
||||||
# Example with all variables modifiable
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
var:
|
|
||||||
- val1
|
|
||||||
- val2
|
|
||||||
my_dyn_family_val1:
|
|
||||||
var: val1
|
|
||||||
my_dyn_family_val2:
|
|
||||||
var: val2
|
|
||||||
var2:
|
|
||||||
- val1
|
|
||||||
- val2
|
|
||||||
```
|
|
||||||
Loading…
Reference in a new issue