Author: kwall
Date: Wed Jan 20 17:20:03 2016
New Revision: 1725760

URL: http://svn.apache.org/viewvc?rev=1725760&view=rev
Log:
QPID-6961: [Java Docbook] Default content-type and apply simple CSS for use 
when docbook used standalone

Added:
    qpid/java/trunk/doc/src/main/docbkx/
    qpid/java/trunk/doc/src/main/docbkx/css/
    qpid/java/trunk/doc/src/main/docbkx/css/style.css
    qpid/java/trunk/doc/src/main/docbkx/docbook-xhtml.xsl
Modified:
    qpid/java/trunk/doc/pom.xml

Modified: qpid/java/trunk/doc/pom.xml
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/doc/pom.xml?rev=1725760&r1=1725759&r2=1725760&view=diff
==============================================================================
--- qpid/java/trunk/doc/pom.xml (original)
+++ qpid/java/trunk/doc/pom.xml Wed Jan 20 17:20:03 2016
@@ -134,6 +134,8 @@
                         <xincludeSupported>true</xincludeSupported>
                         <chunkedOutput>true</chunkedOutput>
                         <showXslMessages>true</showXslMessages>
+                        
<xhtmlCustomization>../src/main/docbkx/docbook-xhtml.xsl</xhtmlCustomization>
+                        <htmlStylesheet>./css/style.css</htmlStylesheet>
                         <customizationParameters>
                             <parameter>
                                 <name>use.id.as.filename</name>
@@ -160,6 +162,9 @@
                             <copy todir="${docbook.target}/images" 
failOnError="false">
                                 <fileset dir="${docbook.src}/images" />
                             </copy>
+                            <copy todir="${docbook.target}/css" 
failOnError="false">
+                                <fileset 
dir="${project.basedir}/../src/main/docbkx/css" />
+                            </copy>
                         </preProcess>
                     </configuration>
                 </plugin>

Added: qpid/java/trunk/doc/src/main/docbkx/css/style.css
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/doc/src/main/docbkx/css/style.css?rev=1725760&view=auto
==============================================================================
--- qpid/java/trunk/doc/src/main/docbkx/css/style.css (added)
+++ qpid/java/trunk/doc/src/main/docbkx/css/style.css Wed Jan 20 17:20:03 2016
@@ -0,0 +1,131 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+ul {
+    list-style-type:square;
+}
+
+th {
+    font-weight: bold;
+}
+
+.navfooter td {
+    font-size:10pt;
+}
+
+.navheader td {
+    font-size:10pt;
+}
+
+body {
+    margin:0;
+    background:#FFFFFF;
+    font-family:"Verdana", sans-serif;
+    font-size:10pt;
+}
+
+.container {
+    width:950px;
+    margin:0 auto;
+}
+
+body a {
+    color:#000000;
+}
+
+
+div.book {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.preface {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.chapter {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.section {
+    margin-left:10pt;
+    margin-right:10pt;
+}
+
+div.titlepage {
+    margin-left:-10pt;
+    margin-right:-10pt;
+}
+
+.calloutlist td {
+    font-size:10pt;
+}
+
+.table-contents table {
+    border-spacing: 0px;
+}
+
+.table-contents td {
+    font-size:10pt;
+    padding-left:6px;
+    padding-right:6px;
+}
+
+.chapter h2.title {
+    font-size:20pt;
+    color:#0c3b82;
+}
+
+.chapter .section h2.title {
+    font-size:18pt;
+    color:#0c3b82;
+}
+
+.section h2.title {
+    font-size:16pt;
+    color:#0c3b82;
+}
+
+.section h3.title {
+    font-size:14pt;
+    color:#0c3b82;
+}
+
+.section h4.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.section h5.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.section h6.title {
+    font-size:12pt;
+    color:#0c3b82;
+}
+
+.toc a {
+    font-size:9pt;
+}
+

Added: qpid/java/trunk/doc/src/main/docbkx/docbook-xhtml.xsl
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/doc/src/main/docbkx/docbook-xhtml.xsl?rev=1725760&view=auto
==============================================================================
--- qpid/java/trunk/doc/src/main/docbkx/docbook-xhtml.xsl (added)
+++ qpid/java/trunk/doc/src/main/docbkx/docbook-xhtml.xsl Wed Jan 20 17:20:03 
2016
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                xmlns:fo="http://www.w3.org/1999/XSL/Format";
+                version="1.0">
+  <!-- import the original docbook stylesheet -->
+  <xsl:import href="urn:docbkx:stylesheet"/>
+
+  <xsl:template name="system.head.content">
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+  </xsl:template>
+</xsl:stylesheet>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to