From 9fd2e78b96e7c950556a06e109b3064a40c59d37 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 4 Nov 2020 16:27:32 +0100 Subject: [PATCH] docs: xsl: Unify stylability of main container element page.xsl was adding '
' wrapper for the content picked up from the element from the original input file. Optionally class="$DOCNAME" was added for some documents taken from . Since docs generated from RST by docutils have a '
Reviewed-by: Michal Privoznik --- docs/docs.html.in | 2 +- docs/index.html.in | 2 +- docs/libvirt.css | 12 ++++++------ docs/page.xsl | 23 +++++++++++++++-------- scripts/hvsupport.py | 2 +- 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/docs/docs.html.in b/docs/docs.html.in index 77d5c78b30..22a43517ed 100644 --- a/docs/docs.html.in +++ b/docs/docs.html.in @@ -1,7 +1,7 @@ - +

Documentation

Deployment / operation

diff --git a/docs/index.html.in b/docs/index.html.in index 3057a052dd..df182c27b6 100644 --- a/docs/index.html.in +++ b/docs/index.html.in @@ -8,7 +8,7 @@ // --> - +

The virtualization API

diff --git a/docs/libvirt.css b/docs/libvirt.css index 1511ccf9e9..bb71244a7e 100644 --- a/docs/libvirt.css +++ b/docs/libvirt.css @@ -95,7 +95,7 @@ margin-right: 1em; } -#content { +.document { margin-left: auto; margin-right: auto; padding: 0px; @@ -104,9 +104,9 @@ width: 70em; } -body.index #content, -body.docs #content, -body.hvsupport #content +#index.document, +#docs.document, +#hvsupport.document { width: inherit; } @@ -412,14 +412,14 @@ div.panel h2 { text-align: center; } -body.index h1 { +#index.document h1 { border: 0px; text-indent: 100%; white-space: nowrap; overflow: hidden; background: url(logos/logo-banner-dark-800.png) no-repeat center center; height: 300px; } -body.docs h1 { +#docs.document h1 { visibility: hidden; } diff --git a/docs/page.xsl b/docs/page.xsl index 9e0d4e0954..5cb4322fdc 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -112,15 +112,22 @@ - - - - -
-
- -
+ + + + + +
+ + + + + + +
+
+