Skip to content

Commit

Permalink
Merge pull request #1952 from oleole39/fix_escaping_in_generate_helpe…
Browse files Browse the repository at this point in the history
…rs_template

Fix escaping in generate helpers doc template & v2.1 helpers comments
  • Loading branch information
alexAubin authored Sep 17, 2024
2 parents f14f5bb + 8f6fda8 commit b8c12f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/helper_doc_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Doc auto-generated by [this script](https://github.com/YunoHost/yunohost/blob/{{
{% for h in helpers %}
#### {{ h.name }}

[details summary="<i>{{ h.brief }}</i>" class="helper-card-subtitle text-muted"]
[details summary="<i>{{ h.brief | escape }}</i>" class="helper-card-subtitle text-muted"]

**Usage**: `{{ h.usage }}`
{%- if h.args %}
Expand Down
3 changes: 1 addition & 2 deletions helpers/helpers.v2.1.d/logging
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ ynh_exec_and_print_stderr_only_if_error() {
fi
}

# Return data to the YunoHost core for later processing
# (to be used by special hooks like app config panel and core diagnosis)
# Return data to the YunoHost core for later processing (to be used by special hooks like app config panel and core diagnosis)
#
# usage: ynh_return somedata
ynh_return() {
Expand Down
2 changes: 2 additions & 0 deletions helpers/helpers.v2.1.d/setting
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ ynh_app_setting_set() {
#
# Hence it's meant as a replacement for this legacy overly complex syntax:
#
# ```
# if [ -z "${foo:-}" ]
# then
# foo="bar"
# ynh_app_setting_set --key="foo" --value="$foo"
# fi
# ```
#
# usage: ynh_app_setting_set_default --key=key --value=value
# | arg: --app= - the application id (global $app by default)
Expand Down

0 comments on commit b8c12f2

Please sign in to comment.