forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r179991 - in /forrest/trunk/site-author/content/xdocs/docs: faq.xml upgrading_07.xml
Date Sat, 04 Jun 2005 14:03:01 GMT
Author: rgardler
Date: Sat Jun  4 07:03:00 2005
New Revision: 179991

URL: http://svn.apache.org/viewcvs?rev=179991&view=rev
Log:
Document including raw HTML content

Modified:
    forrest/trunk/site-author/content/xdocs/docs/faq.xml
    forrest/trunk/site-author/content/xdocs/docs/upgrading_07.xml

Modified: forrest/trunk/site-author/content/xdocs/docs/faq.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs/faq.xml?rev=179991&r1=179990&r2=179991&view=diff
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs/faq.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs/faq.xml Sat Jun  4 07:03:00 2005
@@ -374,6 +374,26 @@
         Transformer</link>. You can see an example of how it works in the above linked
issue.</p>
       </answer>
     </faq>
+    <faq id="rawTML">
+      <question>How can I include HTML content that is not to be skinned by Forrest?</question>
+      <answer>
+        <p>To server, for example, a legacy HTML site add something like the following

+        to your projects sitemap:</p>
+        <source>
+&lt;map:match pattern="old_site/**.html"&gt;
+ &lt;map:select type="exists"&gt;
+  &lt;map:when test="{project:content}{0}"&gt;
+    &lt;map:read src="{project:content}/{0}" mime-type="text/html"/&gt;
+    &lt;!--
+      Use this instead if you want JTidy to clean up your HTML
+      &lt;map:generate type="html" src="{project:content}/{0}" /&gt;
+      &lt;map:serialize type="html"/&gt;
+    --&gt;
+  &lt;/map:when&gt;
+&lt;/map:match&gt;
+        </source>
+      </answer>
+    </faq>
   </part>
   <part id="technical">
     <title>Technical</title>

Modified: forrest/trunk/site-author/content/xdocs/docs/upgrading_07.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs/upgrading_07.xml?rev=179991&r1=179990&r2=179991&view=diff
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs/upgrading_07.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs/upgrading_07.xml Sat Jun  4 07:03:00 2005
@@ -139,23 +139,46 @@
         Any linked file with .html extension was not processed and not
         adorned with Forrest skin and navigation menus.
       </p>
+      <p>It was also possible to place HTML content in the XDocs directory
+      where it would be copied across if it were linked from the main
+      content.</p>
       <p>
         In 0.7 version, any file that is linked to, needs to be placed in
         the content/xdocs/ directory structure.
         Any linked file with .html extension is now processed and is
         adorned with Forrest skin and navigation menus.
-      </p>
+      </p>        
+      <p>If you 
+        you wish to emulate the behaviour of 0.6 and earlier then you
+        must add the following to your projects sitemap.</p>
+        
+        <source>
+&lt;map:match pattern="**.html"&gt;
+ &lt;map:select type="exists"&gt;
+  &lt;map:when test="{project:content}{0}"&gt;
+    &lt;map:read src="{project:content}/{0}" mime-type="text/html"/&gt;
+    &lt;!--
+      Use this instead if you want JTidy to clean up your HTML
+      &lt;map:generate type="html" src="{project:content}/{0}" /&gt;
+      &lt;map:serialize type="html"/&gt;
+    --&gt;
+  &lt;/map:when&gt;
+  &lt;map:when test="{project:content.xdocs}{0}"&gt;
+    &lt;map:read src="{project:content.xdocs}/{0}" mime-type="text/html"/&gt;
+    &lt;!--
+      Use this instead if you want JTidy to clean up your HTML
+      &lt;map:generate type="html" src="{project:content.xdocs}/{0}" /&gt;
+      &lt;map:serialize type="html"/&gt;
+    --&gt;
+  &lt;/map:when&gt;
+ &lt;/map:select&gt;
+&lt;/map:match&gt;
+        </source>
+        
       <p>
         If you need to include files that are not linked to,
         then place them in the src/documentation/content/ directories
-        as with the 0.6 version.
-      </p>
-      <p>
-        If you need to link to html files but want them to be un-processed,
-        then place them in the src/documentation/content/ directories and
-        add an entry to conf/cli.xconf to exclude them from processing.
-        An FAQ describes the use of Cocoon's
-        <a href="faq.html#cli-xconf">cli.xconf</a>
+        as with the 0.6 version. 
       </p>
     </section>
 



Mime
View raw message