Skip to content

Commit

Permalink
added display_name to registry weaver template
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Wert <alexander.wert@elastic.co>
  • Loading branch information
AlexanderWert committed Jun 17, 2024
1 parent c03f19c commit ed9e92e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/registry/markdown/attribute_namespace.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
# {{ ctx.id | title_case | acronym }}

{% if ctx.groups | length > 1 %}{% for group in ctx.groups | sort(attribute="id") %}
{%- set group_name = group.id | split_id | list | reject("eq", "registry") | join(" ") -%}
- [{{ group_name | title_case }}](#{{group_name | kebab_case }}-attributes)
- [{{ group.display_name }}](#{{group.display_name | kebab_case }}-attributes)
{% endfor %}{% endif %}
{% for group in ctx.groups | sort(attribute="id") %}
{% if display_name in group %}
## {{ group.display_name }}
{% else %}
## {{ group.id | split_id | list | reject("eq", "registry") | join(" ") | title_case | acronym }} Attributes
{% endif %}

{{ group.brief }}

Expand Down

0 comments on commit ed9e92e

Please sign in to comment.