3
0
Fork 0
forked from mirrors/nixpkgs

nixosOptionsDoc: refactor

Thanks to Infinisil for pointing this out.
This commit is contained in:
Robert Hensing 2022-05-16 22:53:23 +02:00
parent 81a0a8be29
commit 0b02135d3b

View file

@ -22,17 +22,11 @@
<xsl:for-each select="attrs">
<xsl:variable name="id" select="
concat('opt-',
str:replace(str:replace(str:replace(str:replace(str:replace(str:replace(str:replace(
translate(
attr[@name = 'name']/string/@value,
'*', '_'),
'&lt;', '_'),
' ', '_'),
'>', '_'),
'[', '_'),
']', '_'),
':', '_')
)
" />
'*&lt; >[]:',
'_______'
))" />
<varlistentry>
<term xlink:href="#{$id}">
<xsl:attribute name="xml:id"><xsl:value-of select="$id"/></xsl:attribute>