Compare commits
No commits in common. "20b475c5f2df0c7df8f65af4c62aa4f347fc7bc8" and "9e2812c542ba8becd2240e9938c5f84e8a8d7390" have entirely different histories.
20b475c5f2
...
9e2812c542
8 changed files with 9 additions and 15 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 0.2.0a44 (2026-01-14)
|
||||
|
||||
### Fix
|
||||
|
||||
- yaml in output format do not convert object to str
|
||||
|
||||
## 0.2.0a43 (2026-01-14)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_doc"
|
||||
version = "0.2.0a44"
|
||||
version = "0.2.0a43"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output doc"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.0a44"
|
||||
__version__ = "0.2.0a43"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ from ruamel.yaml import CommentedMap
|
|||
from ruamel.yaml.representer import RoundTripRepresenter
|
||||
|
||||
|
||||
from .utils import _, calc_path, dump
|
||||
from .utils import _, calc_path
|
||||
|
||||
|
||||
# XXX explicit null (see rougail-output-formatter
|
||||
|
|
@ -69,7 +69,7 @@ class Examples: # pylint: disable=no-member,too-few-public-methods
|
|||
self.formatter.title(
|
||||
_("Example with mandatory variables not filled in"), self.level
|
||||
),
|
||||
self.formatter.yaml(dump(examples_mandatories)),
|
||||
self.formatter.yaml(examples_mandatories),
|
||||
self.formatter.end_family(self.level),
|
||||
])
|
||||
if self.examples:
|
||||
|
|
@ -84,7 +84,7 @@ class Examples: # pylint: disable=no-member,too-few-public-methods
|
|||
datas.extend([self.formatter.title(
|
||||
_("Example with all variables modifiable"), self.level
|
||||
),
|
||||
self.formatter.yaml(dump(examples)),
|
||||
self.formatter.yaml(examples),
|
||||
self.formatter.end_family(self.level),
|
||||
])
|
||||
return self.formatter.compute(datas)
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Formatter(CommonFormatter):
|
|||
|
||||
def yaml(self, _dump: dict) -> str:
|
||||
"""Dump yaml part of documentation"""
|
||||
return f"[,yaml]\n----\n---\n{_dump}\n----\n"
|
||||
return f"[,yaml]\n----\n---\n{dump(_dump)}\n----\n"
|
||||
|
||||
def tabular(self, with_header: bool = True) -> str:
|
||||
"""Transform list to a tabular in string format
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ class Formatter(CommonFormatter):
|
|||
|
||||
def yaml(self, _dump):
|
||||
"""Dump yaml part of documentation"""
|
||||
return self.rich_syntaxt(f'---\n{_dump}', 'yaml')
|
||||
return self.rich_syntaxt(f'---\n{dump(_dump)}', 'yaml')
|
||||
|
||||
def link(
|
||||
self,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class Formatter(CommonFormatter):
|
|||
|
||||
def yaml(self, _dump):
|
||||
"""Dump yaml part of documentation"""
|
||||
return f"```yaml\n---\n{_dump}\n```\n"
|
||||
return f"```yaml\n---\n{dump(_dump)}\n```\n"
|
||||
|
||||
def link_variable(self,
|
||||
path: str,
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ class Formatter(CommonFormatter):
|
|||
|
||||
def yaml(self, _dump: dict) -> str:
|
||||
"""Dump yaml part of documentation"""
|
||||
return f"<pre>{_dump}</pre>"
|
||||
return f"<pre>{dump(_dump)}</pre>"
|
||||
|
||||
def link(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue