New docutils generates a <section> element rather than a <div
class='section'> as it did before thus breaking our headerlink
generator.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
docs/page.xsl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/page.xsl b/docs/page.xsl
index 1021899b3a..04d7cc9432 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -139,6 +139,9 @@
<xsl:if test="./html:a/@id">
<a class="headerlink" href="#{html:a/@id}"
title="Link to this headline">¶</a>
</xsl:if>
+ <xsl:if test="parent::html:section">
+ <a class="headerlink" href="#{../@id}" title="Link to
this headline">¶</a>
+ </xsl:if>
<xsl:if test="parent::html:div[@class='section']">
<a class="headerlink" href="#{../@id}" title="Link to
this headline">¶</a>
</xsl:if>
--
2.43.0