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

Peter Krempa posted 7 patches 5 years, 6 months ago
[PATCH 4/7] docs: css: Hide redundant 'Contents:' line in table of contents of RST docs
Posted by Peter Krempa 5 years, 6 months ago
'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@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

Re: [PATCH 4/7] docs: css: Hide redundant 'Contents:' line in table of contents of RST docs
Posted by Ján Tomko 5 years, 6 months ago
On a Monday in 2020, Peter Krempa wrote:
>'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@redhat.com>
>---
> docs/libvirt.css | 4 ++++
> 1 file changed, 4 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano