From a329bd0376c0125b9cdb1fba949be0a24a98464c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 11 Nov 2019 15:53:02 +0000 Subject: [PATCH] docs: generate permalinks correctly for rst2html output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rst2html output generates the links for headings in a slightly different way than we do for docs written in HTML, so we must match another scenario when generating back links. rst2html will also use

tags for both the document title and the first level of section titles, so we must expand the matching to allow for this too. Reviewed-by: Michal Privoznik Signed-off-by: Daniel P. Berrangé --- docs/libvirt.css | 1 + docs/page.xsl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/libvirt.css b/docs/libvirt.css index e927a084a7..399404ca54 100644 --- a/docs/libvirt.css +++ b/docs/libvirt.css @@ -419,6 +419,7 @@ a.headerlink { visibility: hidden; } +h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, diff --git a/docs/page.xsl b/docs/page.xsl index 70dfec6df6..f8f7ff8cf9 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -176,12 +176,15 @@ - + + + +