forked from mirrors/nixpkgs
nixosOptionsDoc: refactor
Thanks to Infinisil for pointing this out.
This commit is contained in:
parent
81a0a8be29
commit
0b02135d3b
|
@ -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,
|
||||
'*', '_'),
|
||||
'<', '_'),
|
||||
' ', '_'),
|
||||
'>', '_'),
|
||||
'[', '_'),
|
||||
']', '_'),
|
||||
':', '_')
|
||||
)
|
||||
" />
|
||||
'*< >[]:',
|
||||
'_______'
|
||||
))" />
|
||||
<varlistentry>
|
||||
<term xlink:href="#{$id}">
|
||||
<xsl:attribute name="xml:id"><xsl:value-of select="$id"/></xsl:attribute>
|
||||
|
|
Loading…
Reference in a new issue