diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-10-31 11:25:26 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-11-11 12:15:06 +0000 |
commit | 7a568d5fcafa345a4efab330dc82c496d55cb437 (patch) | |
tree | a6cac632935d026b364897a1ddba04144c6cc0fd /docs/page.xsl | |
parent | 4f1812f88d8a3b87277a0dbee030712ec7da52e5 (diff) | |
download | libvirt-7a568d5fcafa345a4efab330dc82c496d55cb437.tar.gz |
docs: remove navigation sidebar from pages
A combination of the index page, top nav bar and docs.html page
provide links to all pages on the site. The left hand nav bar
is thus redundant and can be removed to provide a simpler style
for the site.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'docs/page.xsl')
-rw-r--r-- | docs/page.xsl | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/docs/page.xsl b/docs/page.xsl index 83f79bd044..fcb51916ce 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -7,9 +7,6 @@ exclude-result-prefixes="xsl exsl html" version="1.0"> - <!-- The sitemap.html.in page contains the master navigation structure --> - <xsl:variable name="sitemap" select="document('sitemap.html.in')/html:html/html:body/html:div[@id='sitemap']"/> - <xsl:template match="node() | @*" mode="content"> <xsl:copy> <xsl:apply-templates select="node() | @*" mode="content"/> @@ -25,57 +22,6 @@ <xsl:call-template name="include"/> </xsl:template> - <!-- This processes the sitemap to form a context sensitive - navigation menu for the current page --> - <xsl:template match="html:ul" mode="menu"> - <xsl:param name="pagename"/> - <xsl:param name="level"/> - <ul class="{concat('l', $level)}"> - <xsl:for-each select="html:li"> - <!-- The extra div tag here works around an IE6 whitespace collapsing problem --> - <li><div> - <!-- A menu is active if there is an 'a' tag with - a href matching this pagename at this level - or a child menu --> - <xsl:variable name="class"> - <xsl:choose> - <xsl:when test="count(.//html:a[@href = $pagename]) > 0"> - <xsl:text>active</xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:text>inactive</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <!-- A menu should use a 'span' instead of 'a' if - the immediate 'a' tag has href matching the - current pagename --> - <xsl:choose> - <xsl:when test="$pagename = html:a/@href"> - <span class="{$class}"><xsl:value-of select="html:a"/></span> - </xsl:when> - <xsl:when test="starts-with(html:a/@href, 'http://wiki.libvirt.org')"> - <a title="{./html:span}" class="{$class}" href="{html:a/@href}"><xsl:value-of select="html:a"/></a> - </xsl:when> - <xsl:otherwise> - <a title="{./html:span}" class="{$class}" href="{concat($href_base, html:a/@href)}"><xsl:value-of select="html:a"/></a> - </xsl:otherwise> - </xsl:choose> - - <!-- A sub-menu should only be expanded it contains - an 'a' tag with href matching this pagename --> - <xsl:if test="count(.//html:a[@href = $pagename]) > 0"> - <xsl:apply-templates select="html:ul" mode="menu"> - <xsl:with-param name="pagename" select="$pagename"/> - <xsl:with-param name="level" select="$level + 1"/> - </xsl:apply-templates> - </xsl:if> - </div></li> - </xsl:for-each> - </ul> - </xsl:template> - <xsl:template name="toc"> <ul> <xsl:for-each select="/html:html/html:body/html:h2[count(html:a) = 1]"> @@ -148,12 +94,6 @@ </xsl:attribute> </xsl:if> <div id="body"> - <div id="menu"> - <xsl:apply-templates select="exsl:node-set($sitemap)/html:ul" mode="menu"> - <xsl:with-param name="pagename" select="$pagename"/> - <xsl:with-param name="level" select="0"/> - </xsl:apply-templates> - </div> <div id="content"> <xsl:apply-templates select="/html:html/html:body/*" mode="content"/> </div> |