summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorRobert Godfrey <rgodfrey@apache.org>2012-04-25 21:43:56 +0000
committerRobert Godfrey <rgodfrey@apache.org>2012-04-25 21:43:56 +0000
commit5176a3dbc9c1eab1795095fbb91dccd6833c278b (patch)
treea2531d90203649a278498da71f8bd6f2d1c32c4c /qpid
parent76c890582aa3ceff63a3646c03a1ec1e85bc5413 (diff)
downloadqpid-python-5176a3dbc9c1eab1795095fbb91dccd6833c278b.tar.gz
QPID-3722 : Make the chunked HTML presentation look like the rest of the website
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1330572 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rwxr-xr-xqpid/doc/book/build-book.sh7
-rw-r--r--qpid/doc/book/html-custom.xsl166
-rw-r--r--qpid/doc/book/src/css/style.css142
3 files changed, 312 insertions, 3 deletions
diff --git a/qpid/doc/book/build-book.sh b/qpid/doc/book/build-book.sh
index 5cc02b9fd8..344e4b3607 100755
--- a/qpid/doc/book/build-book.sh
+++ b/qpid/doc/book/build-book.sh
@@ -31,9 +31,9 @@
# DOCBOOK XSL STYLESHEET LOCATION
# Fedora, RHEL:
-DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets
+#DOCBOOK_XSL=/usr/share/sgml/docbook/xsl-stylesheets
# Ubuntu:
-# DOCBOOK_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
+DOCBOOK_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
# Ubuntu 10.4 installed it here:
# DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns
@@ -52,8 +52,9 @@ xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.g
# Create chunked .html
INFILE=$(readlink -f src/$1.xml)
+XSLFILE=$(readlink -f html-custom.xsl)
pushd build/$1/html
-xsltproc --xinclude --stringparam chunk.section.depth 1 --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 --stringparam use.id.as.filename 1 --stringparam html.stylesheet css/style.css --stringparam section.autolabel.max.depth 3 --stringparam toc.section.depth 2 --stringparam chunker.output.encoding UTF-8 ${DOCBOOK_XSL}/html/chunk.xsl $INFILE
+xsltproc --xinclude --stringparam chunk.section.depth 1 --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 --stringparam use.id.as.filename 1 --stringparam html.stylesheet css/style.css --stringparam section.autolabel.max.depth 3 --stringparam toc.section.depth 2 --stringparam chunker.output.encoding UTF-8 --stringparam css.decoration 0 $XSLFILE $INFILE
popd
# Create the .fo
diff --git a/qpid/doc/book/html-custom.xsl b/qpid/doc/book/html-custom.xsl
new file mode 100644
index 0000000000..8d0254e587
--- /dev/null
+++ b/qpid/doc/book/html-custom.xsl
@@ -0,0 +1,166 @@
+<?xml version='1.0'?>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+
+<xsl:template name="chunk-element-content">
+ <xsl:param name="prev"/>
+ <xsl:param name="next"/>
+ <xsl:param name="nav.context"/>
+ <xsl:param name="content">
+ <xsl:apply-imports/>
+ </xsl:param>
+
+ <xsl:call-template name="user.preroot"/>
+
+ <html>
+ <xsl:call-template name="html.head">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ </xsl:call-template>
+
+ <body>
+ <xsl:call-template name="body.attributes"/>
+ <xsl:call-template name="user.header.navigation"/>
+
+ <xsl:call-template name="header.navigation">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="nav.context" select="$nav.context"/>
+ </xsl:call-template>
+
+<div class="main_text_area">
+ <div class="main_text_area_top">
+ </div>
+ <div class="main_text_area_body">
+ <xsl:call-template name="user.header.content"/>
+ <xsl:copy-of select="$content"/>
+
+ <xsl:call-template name="user.footer.content"/>
+ </div>
+ <xsl:call-template name="footer.navigation">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="nav.context" select="$nav.context"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="user.footer.navigation"/>
+ <div class="main_text_area_bottom">
+ </div>
+</div>
+ </body>
+ </html>
+ <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+<xsl:template name="breadcrumbs">
+ <xsl:param name="this.node" select="."/>
+ <DIV class="breadcrumbs">
+ <xsl:for-each select="$this.node/ancestor::*">
+ <span class="breadcrumb-link">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="."/>
+ <xsl:with-param name="context" select="$this.node"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="." mode="title.markup"/>
+ </a>
+ </span>
+ <xsl:text> &gt; </xsl:text>
+ </xsl:for-each>
+ <!-- And display the current node, but not as a link -->
+ <span class="breadcrumb-node">
+ <xsl:apply-templates select="$this.node" mode="title.markup"/>
+ </span>
+ </DIV>
+</xsl:template>
+
+<xsl:template name="header.navigation">
+ <DIV class="header">
+ <DIV class="logo">
+ <H1>Apache Qpid&#8482;</H1>
+ <H2>Open Source AMQP Messaging</H2>
+ </DIV>
+ </DIV>
+
+ <DIV class="menu_box">
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>Apache Qpid</H3>
+ <UL>
+ <LI><A href="http://qpid.apache.org/index.html">Home</A></LI>
+ <LI><A href="http://qpid.apache.org/download.html">Download</A></LI>
+ <LI><A href="http://qpid.apache.org/getting_started.html">Getting Started</A></LI>
+ <LI><A href="http://www.apache.org/licenses/">License</A></LI>
+ <LI><A href="https://cwiki.apache.org/qpid/faq.html">FAQ</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>Documentation</H3>
+ <UL>
+ <LI><A href="http://qpid.apache.org/documentation.html#doc-release">0.14 Release</A></LI>
+ <LI><A href="http://qpid.apache.org/documentation.html#doc-trunk">Trunk</A></LI>
+ <LI><A href="http://qpid.apache.org/documentation.html#doc-archives">Archive</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>Community</H3>
+ <UL>
+ <LI><A href="http://qpid.apache.org/getting_involved.html">Getting Involved</A></LI>
+ <LI><A href="http://qpid.apache.org/source_repository.html">Source Repository</A></LI>
+ <LI><A href="http://qpid.apache.org/mailing_lists.html">Mailing Lists</A></LI>
+ <LI><A href="https://cwiki.apache.org/qpid/">Wiki</A></LI>
+ <LI><A href="https://issues.apache.org/jira/browse/qpid">Issue Reporting</A></LI>
+ <LI><A href="http://qpid.apache.org/people.html">People</A></LI>
+ <LI><A href="http://qpid.apache.org/acknowledgements.html">Acknowledgements</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>Developers</H3>
+ <UL>
+ <LI><A href="https://cwiki.apache.org/qpid/building.html">Building Qpid</A></LI>
+ <LI><A href="https://cwiki.apache.org/qpid/developer-pages.html">Developer Pages</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>About AMQP</H3>
+ <UL>
+ <LI><A href="http://qpid.apache.org/amqp.html">What is AMQP?</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+
+ <DIV class="menu_box_top"></DIV>
+ <DIV class="menu_box_body">
+ <H3>About Apache</H3>
+ <UL>
+ <LI><A href="http://www.apache.org">Home</A></LI>
+ <LI><A href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</A></LI>
+ <LI><A href="http://www.apache.org/foundation/thanks.html">Thanks</A></LI>
+ <LI><A href="http://www.apache.org/security/">Security</A></LI>
+ </UL>
+ </DIV>
+ <DIV class="menu_box_bottom"></DIV>
+ </DIV>
+
+</xsl:template>
+
+<xsl:template name="user.header.content">
+ <xsl:call-template name="breadcrumbs"/>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/qpid/doc/book/src/css/style.css b/qpid/doc/book/src/css/style.css
index 2a1bee8623..f2a48bf115 100644
--- a/qpid/doc/book/src/css/style.css
+++ b/qpid/doc/book/src/css/style.css
@@ -127,3 +127,145 @@ div.titlepage {
font-size:9pt;
}
+.header {
+ height:100px;
+ width:950px;
+ background:url(http://qpid.apache.org/images/header.png)
+}
+
+.logo {
+ text-align:center;
+ font-weight:600;
+ padding:0 0 0 0;
+ font-size:14px;
+ font-family:"Verdana", cursive;
+}
+
+.logo a {
+ color:#000000;
+ text-decoration:none;
+}
+
+.main_text_area {
+ margin-left:200px;
+}
+
+.main_text_area_top {
+ height:14px;
+ font-size:1px;
+}
+
+.main_text_area_bottom {
+ display:none;
+/* height:14px;
+ margin-bottom:4px;*/
+}
+
+.main_text_area_body {
+ padding:5px 24px;
+}
+
+.main_text_area_body p {
+ text-align:justify;
+}
+
+.main_text_area br {
+ line-height:10px;
+}
+
+.main_text_area h1 {
+ font-size:28px;
+ font-weight:600;
+ margin:0 0 24px 0;
+ color:#0c3b82;
+ font-family:"Verdana", Times, serif;
+}
+
+.main_text_area h2 {
+ font-size:24px;
+ font-weight:600;
+ margin:24px 0 8px 0;
+ color:#0c3b82;
+ font-family:"Verdana",Times, serif;
+}
+
+.main_text_area ol, .main_text_area ul {
+ padding:0;
+ margin:10px 0;
+ margin-left:20px;
+}
+
+.main_text_area li {
+/* margin-left:40px; */
+}
+
+.main_text_area, .menu_box {
+ font-size:13px;
+ line-height:17px;
+ color:#000000;
+}
+
+.main_text_area {
+ font-size:14px;
+}
+
+.main_text_area a {
+ color:#000000;
+}
+
+.main_text_area a:hover {
+ color:#000000;
+}
+
+.menu_box {
+ width:196px;
+ float:left;
+ margin-left:4px;
+}
+
+.menu_box_top {
+ background:url(http://qpid.apache.org/images/menu_top.png) no-repeat;
+ height:14px;
+ font-size:1px;
+}
+
+.menu_box_body {
+ background:url(http://qpid.apache.org/images/menu_body.png) repeat-y;
+ padding:5px 24px 5px 24px;
+}
+
+.menu_box_bottom {
+ background:url(http://qpid.apache.org/images/menu_bottom.png) no-repeat;
+ height:14px;
+ font-size:1px;
+ margin-bottom:1px;
+}
+
+.menu_box h3 {
+ font-size:20px;
+ font-weight:500;
+ margin:0 0 8px 0;
+ color:#0c3b82;
+ font-family:"Verdana",Times, serif;
+}
+
+.menu_box ul {
+ margin:12px;
+ padding:0px;
+}
+
+.menu_box li {
+ list-style:square;
+}
+
+.menu_box a {
+ color:#000000;
+ text-decoration:none;
+}
+
+.menu_box a:hover {
+ color:#000000;
+ text-decoration:underline;
+}
+
+