瀏覽代碼

HADOOP-7923. Update doc versions from 0.20 to 1.0, and automate the updating of version numbers in the doc system. Contributed by Nicholas Sze.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1214655 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley 13 年之前
父節點
當前提交
f0d7ddf723
共有 3 個文件被更改,包括 13 次插入4 次删除
  1. 3 0
      CHANGES.txt
  2. 3 1
      build.xml
  3. 7 3
      src/docs/src/documentation/content/xdocs/tabs.xml

+ 3 - 0
CHANGES.txt

@@ -56,6 +56,9 @@ Release 1.0.0 - 2011.11.27
     HDFS-2604. Add a log message to show if WebHDFS is enabled and a
     configuration section in the forrest doc.  (szetszwo)
 
+    HADOOP-7923. Update doc versions from 0.20 to 1.0, and automate the
+    updating of version numbers in the doc system.  (szetszwo via mattf)
+
   BUG FIXES
 
     HADOOP-7869. HADOOP_HOME warning happens all of the time (Owen O'Malley

+ 3 - 1
build.xml

@@ -1228,6 +1228,9 @@
   <!-- ================================================================== -->
   
   <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">
+    <echo file="${build.dir}/hadoop.ent" append="false">
+      &lt;!ENTITY HadoopVersion "${version}"&gt; 
+    </echo>
     <exec dir="${docs.src}" executable="${forrest.home}/bin/forrest"
 	  failonerror="true">
       <env key="JAVA_HOME" value="${java5.home}"/>
@@ -1243,7 +1246,6 @@
     <style basedir="${mapred.src.dir}" destdir="${build.docs}"
            includes="mapred-default.xml" style="conf/configuration.xsl"/>
     <antcall target="changes-to-html"/>
-    <antcall target="cn-docs"/>
   </target>
 
   <target name="cn-docs" depends="forrest.check, init" 

+ 7 - 3
src/docs/src/documentation/content/xdocs/tabs.xml

@@ -15,8 +15,12 @@
   limitations under the License.
 -->
 
-<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN" 
-          "http://forrest.apache.org/dtd/tab-cocoon-v10.dtd">
+<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN"
+  "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd" [
+    <!ENTITY % hadoop-entities PUBLIC "-//Apache//ENTITIES Hadoop//EN"
+    "../../../../../../build/hadoop.ent">
+    %hadoop-entities;
+]>
 
 <tabs software="Hadoop"
       title="Hadoop"
@@ -31,6 +35,6 @@
 
   <tab label="Project" href="http://hadoop.apache.org/core/" />
   <tab label="Wiki" href="http://wiki.apache.org/hadoop" />
-  <tab label="Hadoop 0.20 Documentation" dir="" />  
+  <tab label="Hadoop &HadoopVersion; Documentation" dir="" />
   
 </tabs>