[PATCH 02/11] docs: page.xsl: Fix headerlinks with new docutils

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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">&#xb6;</a>
       </xsl:if>
+      <xsl:if test="parent::html:section">
+        <a class="headerlink" href="#{../@id}" title="Link to this headline">&#xb6;</a>
+      </xsl:if>
       <xsl:if test="parent::html:div[@class='section']">
         <a class="headerlink" href="#{../@id}" title="Link to this headline">&#xb6;</a>
       </xsl:if>
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux