Making IDs for configuration options unique

Closes #41423

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2025-07-30 15:11:25 +02:00 committed by GitHub
parent 55cd851ecc
commit 699f61f168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ summary="Review build options and configuration for {project_name}.">
[#category-${category.name()?lower_case}]
== ${category.heading}
<@opts.list options=categoryOptions></@opts.list>
<@opts.list options=categoryOptions categoryName=category.name()></@opts.list>
</#if>
</#list>
</@template.guide>

View File

@ -16,7 +16,7 @@
<#nested>
</#macro>
<#macro list options buildIcon=true anchor=true>
<#macro list options buildIcon=true anchor=true categoryName="">
[cols="12a,4",role="options"]
|===
| |Value
@ -27,7 +27,7 @@
[.options-description]#${option.description}#
[<#if anchor>#option-extended-${option.key},</#if>role="options-extended"]
[<#if anchor>#option-extended-${categoryName?lower_case}-${option.key},</#if>role="options-extended"]
--
<#if option.descriptionExtended?has_content>[.options-description-extended]#${option.descriptionExtended!}#</#if>