Compare commits
No commits in common. "a8c682d76c4e588c0aec0cc812d930b82d837036" and "25dc2874b25600834b7971aada5e954707ed2604" have entirely different histories.
a8c682d76c
...
25dc2874b2
19 changed files with 6 additions and 335 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
## 0.2.0a22 (2025-06-18)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- rougail separation
|
|
||||||
|
|
||||||
## 0.2.0a21 (2025-05-12)
|
## 0.2.0a21 (2025-05-12)
|
||||||
|
|
||||||
### 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.0a22"
|
version = "0.2.0a21"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a22"
|
__version__ = "0.2.0a21"
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ from rougail.utils import undefined
|
||||||
from rougail.annotator.variable import Walk
|
from rougail.annotator.variable import Walk
|
||||||
|
|
||||||
from rougail.output_doc.i18n import _
|
from rougail.output_doc.i18n import _
|
||||||
from rougail.convert.object_model import (
|
from rougail.object_model import (
|
||||||
Calculation,
|
Calculation,
|
||||||
JinjaCalculation,
|
JinjaCalculation,
|
||||||
VariableCalculation,
|
VariableCalculation,
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ from re import compile
|
||||||
|
|
||||||
from tiramisu import Calculation, groups
|
from tiramisu import Calculation, groups
|
||||||
from tiramisu.error import ConfigError, display_list, PropertiesOptionError
|
from tiramisu.error import ConfigError, display_list, PropertiesOptionError
|
||||||
from rougail.tiramisu import display_xmlfiles, normalize_family
|
from rougail.error import display_xmlfiles
|
||||||
from rougail.convert.object_model import PROPERTY_ATTRIBUTE
|
from rougail.object_model import PROPERTY_ATTRIBUTE
|
||||||
from rougail.utils import undefined
|
from rougail.utils import normalize_family, undefined
|
||||||
|
|
||||||
from .config import OutPuts
|
from .config import OutPuts
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
[cols="1a,1a"]
|
|
||||||
|====
|
|
||||||
| Variable | Description
|
|
||||||
|
|
|
||||||
|
|
||||||
**var1** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
|
||||||
A first variable.
|
|
||||||
|
|
|
||||||
|
|
||||||
**var2** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
|
||||||
A second variable. +
|
|
||||||
**Default**: value
|
|
||||||
of
|
|
||||||
a
|
|
||||||
variable!.
|
|
||||||
|
|
|
||||||
|
|
||||||
**var3** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
|
||||||
A new variable.
|
|
||||||
|====
|
|
||||||
|
|
||||||
|
|
@ -1,81 +0,0 @@
|
||||||
{
|
|
||||||
"var1": {
|
|
||||||
"type": "variable",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"var1"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var1"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A first variable."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"var2": {
|
|
||||||
"type": "variable",
|
|
||||||
"default": "value\nof\na\nvariable!.",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"var2"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var2"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A second variable."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"var3": {
|
|
||||||
"type": "variable",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"var3"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var3"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A new variable."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
| Variable | Description |
|
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A first variable. |
|
|
||||||
| **var2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second variable.<br/>**Default**: value
|
|
||||||
of
|
|
||||||
a
|
|
||||||
variable!. |
|
|
||||||
| **var3**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A new variable. |
|
|
||||||
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
||||||
┃[1m [0m[1mVariable [0m[1m [0m┃[1m [0m[1mDescription [0m[1m [0m┃
|
|
||||||
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
|
||||||
│ [1mvar1[0m │ A first variable. │
|
|
||||||
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m │ │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
|
||||||
│ [1mvar2[0m │ A second variable. │
|
|
||||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: value │
|
|
||||||
│ │ of │
|
|
||||||
│ │ a │
|
|
||||||
│ │ variable!. │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
|
||||||
│ [1mvar3[0m │ A new variable. │
|
|
||||||
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m │ │
|
|
||||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
[]
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
var1: example
|
|
||||||
var3: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
var1: example
|
|
||||||
var2: example
|
|
||||||
var3: example
|
|
||||||
```
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
[]
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
== Variables for "Rougail"
|
|
||||||
|
|
||||||
[cols="1a,1a"]
|
|
||||||
|====
|
|
||||||
| Variable | Description
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.var1** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
|
||||||
A first variable.
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.var2** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
|
||||||
A second variable. +
|
|
||||||
**Default**: value
|
|
||||||
of
|
|
||||||
a
|
|
||||||
variable!.
|
|
||||||
|
|
|
||||||
|
|
||||||
**rougail.var3** +
|
|
||||||
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
|
||||||
A new variable.
|
|
||||||
|====
|
|
||||||
|
|
||||||
|
|
@ -1,101 +0,0 @@
|
||||||
{
|
|
||||||
"rougail": {
|
|
||||||
"type": "namespace",
|
|
||||||
"informations": {
|
|
||||||
"paths": [
|
|
||||||
"rougail"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"rougail"
|
|
||||||
],
|
|
||||||
"description": "Rougail",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "basic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"children": {
|
|
||||||
"rougail.var1": {
|
|
||||||
"type": "variable",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"rougail.var1"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var1"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A first variable."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rougail.var2": {
|
|
||||||
"type": "variable",
|
|
||||||
"default": "value\nof\na\nvariable!.",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "standard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"rougail.var2"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var2"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A second variable."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rougail.var3": {
|
|
||||||
"type": "variable",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "mode",
|
|
||||||
"name": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "property",
|
|
||||||
"name": "mandatory"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": [
|
|
||||||
"rougail.var3"
|
|
||||||
],
|
|
||||||
"names": [
|
|
||||||
"var3"
|
|
||||||
],
|
|
||||||
"descriptions": [
|
|
||||||
"A new variable."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
# Variables for "Rougail"
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **rougail.var1**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A first variable. |
|
|
||||||
| **rougail.var2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second variable.<br/>**Default**: value
|
|
||||||
of
|
|
||||||
a
|
|
||||||
variable!. |
|
|
||||||
| **rougail.var3**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A new variable. |
|
|
||||||
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
[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 string [0m [1;7m basic [0m [1;7m mandatory [0m │ │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
|
||||||
│ [1mrougail.var2[0m │ A second variable. │
|
|
||||||
│ [1;7m string [0m [1;7m standard [0m [1;7m mandatory [0m │ [1mDefault[0m: value │
|
|
||||||
│ │ of │
|
|
||||||
│ │ a │
|
|
||||||
│ │ variable!. │
|
|
||||||
├───────────────────────────────────────┼──────────────────────────────────────┤
|
|
||||||
│ [1mrougail.var3[0m │ A new variable. │
|
|
||||||
│ [1;7m string [0m [1;7m basic [0m [1;7m mandatory [0m │ │
|
|
||||||
└───────────────────────────────────────┴──────────────────────────────────────┘
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
[]
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
# Example with mandatory variables not filled in
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
var1: example
|
|
||||||
var3: example
|
|
||||||
```
|
|
||||||
# Example with all variables modifiable
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
rougail:
|
|
||||||
var1: example
|
|
||||||
var2: example
|
|
||||||
var3: example
|
|
||||||
```
|
|
||||||
Loading…
Reference in a new issue