diff options
author | Domen Kožar <domen@dev.si> | 2016-06-03 15:55:01 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-06-03 15:55:17 +0100 |
commit | 5260686aa84dea2e2810d88789ab251f09ef2a0e (patch) | |
tree | 80783a6dd53b510ca70c041b74b4fe690924466f | |
parent | bac26e08dbb6622c39bba13047c54e80282d031d (diff) |
fix https://github.com/NixOS/nixops/issues/331
-rw-r--r-- | nixos/doc/manual/options-to-docbook.xsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/doc/manual/options-to-docbook.xsl b/nixos/doc/manual/options-to-docbook.xsl index cd30ae36ae59..5387546b5982 100644 --- a/nixos/doc/manual/options-to-docbook.xsl +++ b/nixos/doc/manual/options-to-docbook.xsl @@ -11,6 +11,7 @@ <xsl:output method='xml' encoding="UTF-8" /> <xsl:param name="revision" /> + <xsl:param name="program" /> <xsl:template match="/expr/list"> @@ -188,7 +189,7 @@ </xsl:otherwise> </xsl:choose> </xsl:when> - <xsl:when test="$revision != 'local' and contains(@value, 'nixops') and contains(@value, '/nix/')"> + <xsl:when test="$revision != 'local' and $program = 'nixops' and contains(@value, '/nix/')"> <xsl:attribute name="xlink:href">https://github.com/NixOS/nixops/blob/<xsl:value-of select="$revision"/>/nix/<xsl:value-of select="substring-after(@value, '/nix/')"/></xsl:attribute> </xsl:when> <xsl:otherwise> |