* Fix generated module links in the manual to point to GitHub.
* Use <nixos/...> instead of /etc/nixos/... svn path=/nixos/trunk/; revision=34391
This commit is contained in:
parent
87e06b97a3
commit
825a84c8f6
@ -156,7 +156,7 @@
|
|||||||
or to the local filesystem. -->
|
or to the local filesystem. -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$revision != 'local' and contains(@value, '/modules/')">
|
<xsl:when test="$revision != 'local' and contains(@value, '/modules/')">
|
||||||
<xsl:attribute name="xlink:href">https://nixos.org/viewvc/nix/nixos/trunk/modules/<xsl:value-of select="substring-after(@value, '/modules/')"/>?revision=<xsl:value-of select="$revision"/></xsl:attribute>
|
<xsl:attribute name="xlink:href">https://github.com/NixOS/nixos/blob/<xsl:value-of select="$revision"/>/modules/<xsl:value-of select="substring-after(@value, '/modules/')"/></xsl:attribute>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:attribute name="xlink:href">file://<xsl:value-of select="@value"/></xsl:attribute>
|
<xsl:attribute name="xlink:href">file://<xsl:value-of select="@value"/></xsl:attribute>
|
||||||
@ -166,8 +166,8 @@
|
|||||||
/nix/store/<hash> prefix by the default location of nixos
|
/nix/store/<hash> prefix by the default location of nixos
|
||||||
sources. -->
|
sources. -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="starts-with(@value, '/nix/store/')">
|
<xsl:when test="contains(@value, '/modules/')">
|
||||||
/etc/nixos/nixos/modules/<xsl:value-of select="substring-after(@value, '/modules/')"/>
|
<nixos/modules/<xsl:value-of select="substring-after(@value, '/modules/')"/>>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="@value" />
|
<xsl:value-of select="@value" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user