WIP: Expand the developer documentation #27

Draft
gremond wants to merge 204 commits from develop into developer_docs
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 0adf0d3f73 - Show all commits

View file

@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from pathlib import Path
from tiramisu import Config
from tiramisu.error import display_list
from ruamel.yaml import YAML
from ..utils import _, load_modules
from ..tiramisu import normalize_family
@ -468,11 +469,13 @@ secret_manager: # {_("The secret manager")}
"""
for hidden_output in hidden_outputs:
rougail_process += """ {% if _.output is not propertyerror and _.output == 'NAME' %}
Cannot load user data for NAME output
Cannot load user data for NAME output
{% endif %}
description: _('cannot load user data for NAME output')""".replace(
""".replace(
"NAME", hidden_output
)
rougail_process += f""" description: _('outputs {0} did not allow user data')
""".format(display_list(hidden_outputs, add_quote=True, separator="or"))
elif objects:
rougail_process += " default: {DEFAULT}".format(
DEFAULT=objects[0]["name"]

View file

@ -377,7 +377,7 @@ class UserData:
[_(prop) for prop in err.proptype], add_quote=False
)
err_path = err.subconfig.path
err_description = err.subconfig.option.impl_get_display_name(err.subconfig)
err_description = err.subconfig.option.impl_get_display_name(err.subconfig, with_quote=True)
display_name = option.description(with_quote=True)
if index is not None:
if path == err_path: