[PATCH 4/7] docs: css: Hide redundant 'Contents:' line in table of contents of RST docs

Peter Krempa pkrempa at redhat.com
Mon Aug 3 11:53:46 UTC 2020


'docutils' add line saying "Contents:" on top of the table of contents.
We don't have that in other documents nor it's really necessary. Hide it
in the stylesheet as we can select it easily.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 docs/libvirt.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/libvirt.css b/docs/libvirt.css
index 6b1e86c7d8..4dc9d3ac76 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -597,3 +597,7 @@ th p, td p {
     margin-top: 2em;
     margin-bottom: 2em;
 }
+
+#contents p.topic-title {
+    display: none;
+}
-- 
2.26.2




More information about the libvir-list mailing list