]> xenbits.xensource.com Git - libvirt.git/commit
docs: xsl: Unify stylability of main container element
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Nov 2020 15:27:32 +0000 (16:27 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Nov 2020 13:04:04 +0000 (14:04 +0100)
commit9fd2e78b96e7c950556a06e109b3064a40c59d37
tree1d7b1c44c7521feefb1f6de960fb5a66ccd2d9f2
parent5f0d7fc6360ff03d58464b8e785d10317d4fba08
docs: xsl: Unify stylability of main container element

page.xsl was adding '<div id="content">' wrapper for the content picked
up from the <body> element from the original input file. Optionally
class="$DOCNAME" was added for some documents taken from <body>.

Since docs generated from RST by docutils have a '<div class='document'
id='$DOCNAME>' we actually don't need an extra wrapper for them.

Additionally if we standardize on one of them we can use the same styles
for both. I've picked the latter because it makes more sense to use the
document name as 'id'.

This patch:
1) Modifies the XSL trasformation to add the wrapper only if it's not
   present.

2) Modifies the XSL transformation to use 'id' for document name and
   class='document' for the wrapper element.

3) Changes docs.html/index.html/hvsupport.html to use 'id' instead of
   'class' for document name.

4) Modifies the main stylesheet to keep styling the elements properly

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/docs.html.in
docs/index.html.in
docs/libvirt.css
docs/page.xsl
scripts/hvsupport.py