openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r740805 - in /openjpa/trunk/openjpa-project: pom.xml src/doc/manual/main.html src/doc/manual/manual-xhtml-chunk.xsl
Date Wed, 04 Feb 2009 17:32:54 GMT
Author: ppoddar
Date: Wed Feb  4 17:32:51 2009
New Revision: 740805

URL: http://svn.apache.org/viewvc?rev=740805&view=rev
Log:
Update OpenJPA documentation for easier navigation

Added:
    openjpa/trunk/openjpa-project/src/doc/manual/main.html
Modified:
    openjpa/trunk/openjpa-project/pom.xml
    openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl

Modified: openjpa/trunk/openjpa-project/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/pom.xml?rev=740805&r1=740804&r2=740805&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/pom.xml (original)
+++ openjpa/trunk/openjpa-project/pom.xml Wed Feb  4 17:32:51 2009
@@ -260,7 +260,11 @@
                                     <postProcess>
                                         <!-- rename manual to index -->
                                         <move file="${docbook.target}/manual.html" tofile="${docbook.target}/index.html"
/>
-
+                                        <!-- Replace a 'base href' token to 'base target'
in the index.html -->
+                                        <!-- This base href was inserted by manual-xhtml-chunk.xsl
parameter 'html.base' -->
+										<replace file="${docbook.target}/index.html" token="base href" value="base target"/>
+                                        <!-- Copy main.html from original location to
docbook target  -->
+                                        <copy file="${docbook.source}/main.html" tofile="${docbook.target}/main.html"
/>
                                         <!-- copy over images and styles -->
                                         <mkdir dir="${docbook.target}/img" />
                                         <copy todir="${docbook.target}/img">

Added: openjpa/trunk/openjpa-project/src/doc/manual/main.html
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/main.html?rev=740805&view=auto
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/main.html (added)
+++ openjpa/trunk/openjpa-project/src/doc/manual/main.html Wed Feb  4 17:32:51 2009
@@ -0,0 +1,41 @@
+<!--
+ 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 HTML uses Frames for navigating the manual from TOC easier         --> 
+<!-- The BASE TARGET frame is named 'display'. The same moniker appears in   -->
+<!-- manual-xhtml-chunk.xsl parameter 'html.base'.                           -->
+<!-- That XSL parameter introduces a &lt;base href="display&gt; tag in the   -->
+<!-- &lt;head&gt; section of the generated TOC index.html. As I do not know  -->
+<!-- how to tweak xsl parameter to introduce a &lt;base target="display"&gt; -->
+<!-- a small hack in pom.xml replaces 'base href' token to 'base target'     -->
+<!-- in the generated TOC index.html.                                        -->
+<HTML>
+<HEAD> 
+   <BASE TARGET="display">
+   </BASE>
+</HEAD> 
+<FRAMESET COLS="30%,70%">
+   <FRAME NAME="navigator" SRC="index.html">
+   <FRAME NAME="display"   SRC="openjpa_intro.html">
+</FRAMESET>
+<NOFRAMES>
+   Please click <A HREF="index.html">here</A> for OpenJPA documentation because
+   this browser does not support frames.
+</NOFRAMES>
+</HTML>
\ No newline at end of file

Modified: openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl?rev=740805&r1=740804&r2=740805&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/manual-xhtml-chunk.xsl Wed Feb  4 17:32:51
2009
@@ -42,6 +42,7 @@
 	<xsl:param name="preface.autolabel" select="0"/>
 	<xsl:param name="qandadiv.autolabel" select="1"/>
 	<xsl:param name="section.autolabel" select="1"/>
+    <xsl:param name="html.base">display</xsl:param>
 
 	<xsl:param name="use.id.as.filename" select="'1'"/>
 	<xsl:template name="process.image.attributes"/>



Mime
View raw message