hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r908169 - in /hadoop/hbase/branches/0.20: CHANGES.txt build.xml conf/tohtml.xsl src/docs/src/documentation/content/xdocs/site.xml
Date Tue, 09 Feb 2010 19:35:14 GMT
Author: stack
Date: Tue Feb  9 19:35:14 2010
New Revision: 908169

URL: http://svn.apache.org/viewvc?rev=908169&view=rev
Log:
HBASE-2185 Add html version of default hbase-site.xml

Added:
    hadoop/hbase/branches/0.20/conf/tohtml.xsl
Modified:
    hadoop/hbase/branches/0.20/CHANGES.txt
    hadoop/hbase/branches/0.20/build.xml
    hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/site.xml

Modified: hadoop/hbase/branches/0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=908169&r1=908168&r2=908169&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.20/CHANGES.txt Tue Feb  9 19:35:14 2010
@@ -7,6 +7,7 @@
 
   IMPROVEMENTS
    HBASE-2180  Bad read performance from synchronizing hfile.fddatainputstream
+   HBASE-2185  Add html version of default hbase-site.xml (Kay Kay via Stack)
 
   NEW FEATURES
 

Modified: hadoop/hbase/branches/0.20/build.xml
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/build.xml?rev=908169&r1=908168&r2=908169&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/build.xml (original)
+++ hadoop/hbase/branches/0.20/build.xml Tue Feb  9 19:35:14 2010
@@ -53,6 +53,7 @@
   <property name="build.test" location="${build.dir}/test"/>
   <property name="build.examples" location="${build.dir}/examples"/>
   <property name="build.docs" value="${build.dir}/docs"/>
+  <property name="build.docinput" value="${build.dir}/docinput" />
   <property name="build.javadoc" value="${build.docs}/api"/>
   <property name="build.encoding" value="ISO-8859-1"/>
   <property name="build.src" value="${build.dir}/src"/>
@@ -383,12 +384,23 @@
   <!-- ================================================================== -->
   <target name="docs" depends="forrest.check"
       description="Generate forrest-based documentation. To use, specify -Dforrest.home=&lt;base
of Apache Forrest installation&gt; on the command line." if="forrest.home">
-    <exec dir="${docs.src}" executable="${forrest.home}/bin/forrest" failonerror="true"
/>
+	<mkdir dir="${build.docinput}" />
+    <copy todir="${build.docinput}" >
+      <fileset dir="${docs.src}" />  	
+    </copy>	
+    <property name="conf.html.output" value="${build.docinput}/src/documentation/content/xdocs/hbase-conf.xml"
/>
+    <xslt in="${basedir}/conf/hbase-default.xml" out="${conf.html.output}" 
+  	    style="${basedir}/conf/tohtml.xsl" >
+      <xmlcatalog>
+  		  <dtd
+  		    publicId="-//APACHE//DTD Documentation V2.0//EN"
+  		    location="http://forrest.apache.org/dtd/document-v20.dtd"/>
+      </xmlcatalog> 		
+    </xslt>	
+    <exec dir="${build.docinput}" executable="${forrest.home}/bin/forrest" failonerror="true"
/>
     <copy todir="${build.docs}">
-      <fileset dir="${docs.src}/build/site/" />
+      <fileset dir="${build.docinput}/build/site/" />
     </copy>
-    <style basedir="${conf.dir}" destdir="${build.docs}"
-           includes="hadoop-default.xml" style="conf/configuration.xsl"/>
     <!--Copy to $HBASE_HOME/docs ... need to check it in to persist it.-->
     <copy todir="${docs.dir}">
       <fileset dir="${build.docs}" />

Added: hadoop/hbase/branches/0.20/conf/tohtml.xsl
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/conf/tohtml.xsl?rev=908169&view=auto
==============================================================================
--- hadoop/hbase/branches/0.20/conf/tohtml.xsl (added)
+++ hadoop/hbase/branches/0.20/conf/tohtml.xsl Tue Feb  9 19:35:14 2010
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:output method="xml"/>
+<xsl:template match="configuration">
+<!--
+/**
+ * Copyright 2009 The Apache Software Foundation
+ *
+ * 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.
+-->
+<document>
+  <header>
+    <title> 
+      HBase Default Configuration
+    </title>
+  </header>
+  <body>
+<table border="1">
+<tr>
+ <td><b>property</b></td>
+ <td><b>default value</b></td>
+ <td><b>description</b></td>
+</tr>
+<xsl:for-each select="property">
+<tr>
+  <td><a name="{name}"><xsl:value-of select="name"/></a></td>
+  <td><xsl:value-of select="value"/></td>
+  <td><xsl:value-of select="description"/></td>
+</tr>
+</xsl:for-each>
+</table>
+</body>
+</document>
+</xsl:template>
+</xsl:stylesheet>

Modified: hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/site.xml?rev=908169&r1=908168&r2=908169&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/site.xml (original)
+++ hadoop/hbase/branches/0.20/src/docs/src/documentation/content/xdocs/site.xml Tue Feb 
9 19:35:14 2010
@@ -36,6 +36,7 @@
     <started   label="Getting Started"    href="ext:api/started" />
     <api       label="API Docs"           href="ext:api/index" />
     <api       label="HBase Metrics"      href="metrics.html" />
+    <api       label="HBase  Default Configuration" href="hbase-conf.html" />
     <api       label="HBase on Windows"   href="cygwin.html" />
     <wiki      label="Wiki"               href="ext:wiki" />
     <faq       label="FAQ"                href="ext:faq" />



Mime
View raw message