• Peter Krempa's avatar
    docs: xsl: Unify stylability of main container element · 9fd2e78b
    Peter Krempa authored
    
    
    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's avatarPeter Krempa <pkrempa@redhat.com>
    Reviewed-by: Michal P...
    9fd2e78b
docs.html.in 7.47 KB