mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
docs: xslt: Use 'Link' rather than 'Permalink' in header links
The anchors are based on the article or chapter headers, thus they are not 100% permanent. Especially with pages generated from RST. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
501ff523e7
commit
f988d4320d
@ -194,10 +194,10 @@
|
|||||||
<xsl:element name="{name()}">
|
<xsl:element name="{name()}">
|
||||||
<xsl:apply-templates mode="copy" />
|
<xsl:apply-templates mode="copy" />
|
||||||
<xsl:if test="./html:a/@id">
|
<xsl:if test="./html:a/@id">
|
||||||
<a class="headerlink" href="#{html:a/@id}" title="Permalink to this headline">¶</a>
|
<a class="headerlink" href="#{html:a/@id}" title="Link to this headline">¶</a>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="parent::html:div[@class='section']">
|
<xsl:if test="parent::html:div[@class='section']">
|
||||||
<a class="headerlink" href="#{../@id}" title="Permalink to this headline">¶</a>
|
<a class="headerlink" href="#{../@id}" title="Link to this headline">¶</a>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:element>
|
</xsl:element>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
Loading…
Reference in New Issue
Block a user