mirror of
https://github.com/NixOS/nix.git
synced 2025-12-03 07:31:00 +01:00
* Store paths are now abbreviated in the generated HTML file.
Hovering over the abbreviated path will reveal the full path. This probably only works in Mozilla.
This commit is contained in:
parent
9d2669d218
commit
b5539e7a30
3 changed files with 89 additions and 13 deletions
|
|
@ -17,9 +17,7 @@
|
|||
<xsl:template match="nest">
|
||||
<div class='nesting'>
|
||||
<div class='head'>
|
||||
<code>
|
||||
<xsl:value-of select="head"/>
|
||||
</code>
|
||||
<xsl:apply-templates select='head'/>
|
||||
</div>
|
||||
<blockquote class='body'>
|
||||
<xsl:for-each select='line|nest'>
|
||||
|
|
@ -52,10 +50,17 @@
|
|||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="line">
|
||||
<code class='line'>
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:template match="head|line">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="storeref">
|
||||
<em class='storeref'>
|
||||
<span class='z'><span class='popup'><xsl:apply-templates/></span></span>
|
||||
<span class='elided'>(...)</span><xsl:apply-templates select='name'/><xsl:apply-templates select='path'/>
|
||||
</em>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue