You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/12/06 07:43:54 UTC

svn commit: r1210795 - in /hbase/trunk: pom.xml src/docbkx/book.xml src/docbkx/customization.xsl

Author: stack
Date: Tue Dec  6 06:43:54 2011
New Revision: 1210795

URL: http://svn.apache.org/viewvc?rev=1210795&view=rev
Log:
HBASE-4964 Add builddate, make less sections in toc, and add header and footer customizations

Added:
    hbase/trunk/src/docbkx/customization.xsl
Modified:
    hbase/trunk/pom.xml
    hbase/trunk/src/docbkx/book.xml

Modified: hbase/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=1210795&r1=1210794&r2=1210795&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Tue Dec  6 06:43:54 2011
@@ -520,7 +520,10 @@
           <sectionLabelIncludesComponentLabel>true</sectionLabelIncludesComponentLabel>
           <targetDirectory>${basedir}/target/site/book/</targetDirectory>
           <htmlStylesheet>../css/freebsd_docbook.css</htmlStylesheet>
+          <htmlCustomization>src/docbkx/customization.xsl</htmlCustomization>
           <imgSrcPath>../images/</imgSrcPath>
+          <tocSectionDepth>1</tocSectionDepth>
+          <insertXrefPageNumber>yes</insertXrefPageNumber>
         </configuration>
             <goals>
               <goal>generate-html</goal>
@@ -538,6 +541,8 @@
           <targetDirectory>${basedir}/target/site/</targetDirectory>
           <htmlStylesheet>css/freebsd_docbook.css</htmlStylesheet>
           <imgSrcPath>images/</imgSrcPath>
+          <tocSectionDepth>1</tocSectionDepth>
+          <insertXrefPageNumber>yes</insertXrefPageNumber>
         </configuration>
             <goals>
               <goal>generate-html</goal>
@@ -849,6 +854,12 @@
   </build>
 
   <properties>
+    <maven.build.timestamp.format>
+      yyyy-MM-dd'T'HH:mm
+    </maven.build.timestamp.format>
+    <buildDate>
+      ${maven.build.timestamp}
+    </buildDate>
     <compileSource>1.6</compileSource>
 
     <!-- Dependencies -->

Modified: hbase/trunk/src/docbkx/book.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/book.xml?rev=1210795&r1=1210794&r2=1210795&view=diff
==============================================================================
--- hbase/trunk/src/docbkx/book.xml (original)
+++ hbase/trunk/src/docbkx/book.xml Tue Dec  6 06:43:54 2011
@@ -28,14 +28,18 @@
       xmlns:html="http://www.w3.org/1999/xhtml"
       xmlns:db="http://docbook.org/ns/docbook">
   <info>
+    
     <title><link xlink:href="http://www.hbase.org">
+    Apache HBase Book
+    </link></title>
+    <subtitle><link xlink:href="http://www.hbase.org">
            <inlinemediaobject>
                <imageobject>
                    <imagedata align="middle" valign="middle" fileref="hbase_logo.png" />
                </imageobject>
            </inlinemediaobject>
        </link>
-    </title>
+    </subtitle>
       <copyright><year>2011</year><holder>Apache Software Foundation</holder></copyright>
       <abstract>
     <para>This is the official book of
@@ -48,11 +52,12 @@
 
     <revhistory>
       <revision>
-        <date />
-        <revdescription>HBase version</revdescription>
         <revnumber>
           <?eval ${project.version}?>
         </revnumber>
+        <date>
+          <?eval ${buildDate}?>
+        </date>
       </revision>
     </revhistory>
   </info>

Added: hbase/trunk/src/docbkx/customization.xsl
URL: http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/customization.xsl?rev=1210795&view=auto
==============================================================================
--- hbase/trunk/src/docbkx/customization.xsl (added)
+++ hbase/trunk/src/docbkx/customization.xsl Tue Dec  6 06:43:54 2011
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<xsl:stylesheet
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  version="1.0">
+<!--
+/**
+ * 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.
+ */
+
+This stylesheet is used making an html version of hbase-default.xml.
+-->
+  <xsl:import href="urn:docbkx:stylesheet"/>
+
+  <xsl:template name="user.header.content">
+  </xsl:template>
+
+  <xsl:template name="user.footer.content">
+  </xsl:template>
+
+</xsl:stylesheet>