Add display of declaration and definition locations.

svn path=/nixos/trunk/; revision=17254
This commit is contained in:
Nicolas Pierron 2009-09-18 15:10:32 +00:00
parent 70a10c1720
commit cb85c4ed3e
2 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,7 @@
{ pkgs, options }: { pkgs, options
# revision can have multiple values: local, HEAD or any revision number.
, revision ? "HEAD"
}:
let let
# To prevent infinite recursion, remove system.path from the # To prevent infinite recursion, remove system.path from the
@ -33,7 +36,7 @@ let
buildCommand = '' buildCommand = ''
ln -s $sources/*.xml . ln -s $sources/*.xml . # */
ln -s ${optionsDocBook} options-db.xml ln -s ${optionsDocBook} options-db.xml
dst=$out/share/doc/nixos dst=$out/share/doc/nixos

View File

@ -58,6 +58,20 @@
</literal> </literal>
</para> </para>
</xsl:if> </xsl:if>
<xsl:if test="count(attr[@name = 'declarations']/list/*) != 0">
<para>
<emphasis>Declared by:</emphasis>
<xsl:apply-templates select="attr[@name = 'declarations']" />
</para>
</xsl:if>
<xsl:if test="count(attr[@name = 'definitions']/list/*) != 0">
<para>
<emphasis>Defined by:</emphasis>
<xsl:apply-templates select="attr[@name = 'definitions']" />
</para>
</xsl:if>
</listitem> </listitem>