forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r233482 - /forrest/trunk/site-author/content/xdocs/docs_0_80/faq.xml
Date Fri, 19 Aug 2005 13:39:00 GMT
Author: crossley
Date: Fri Aug 19 06:38:57 2005
New Revision: 233482

URL: http://svn.apache.org/viewcvs?rev=233482&view=rev
Log:
Include additional Javascript and CSS files.

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

Modified: forrest/trunk/site-author/content/xdocs/docs_0_80/faq.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/faq.xml?rev=233482&r1=233481&r2=233482&view=diff
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/faq.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/faq.xml Fri Aug 19 06:38:57 2005
@@ -407,8 +407,8 @@
     <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>
+        <p>To serve, for example a legacy HTML site, add something like the following

+        to your project's sitemap:</p>
         <source>
 &lt;map:match pattern="old_site/**.html"&gt;
  &lt;map:select type="exists"&gt;
@@ -422,6 +422,29 @@
   &lt;/map:when&gt;
 &lt;/map:match&gt;
         </source>
+      </answer>
+    </faq>
+
+    <faq id="javascript">
+      <question>How to include additional Javascript and CSS files?</question>
+      <answer>
+        <p>
+          Place various resources (e.g. javascript, css) into the
+          "project skins" directory. The default forrest.properties
+          has this at src/documentation/skins/$skin-name/
+          Javascript files would go in a "scripts" subdirectory.
+          CSS files would go in a "css" subdirectory.
+        </p>
+        <p>
+          Then refer to those from your source documents with
+          URIs like /skin/blah.js and /skin/foo.css
+        </p>
+        <p>
+          See how this is handled in the core sitemap
+          called forrest/main/webapp/resources.xmap
+          Search for "javascript" then follow to the 
+          &lt;map:resource name="skin-read"&gt; section.
+        </p>
       </answer>
     </faq>
   </part>



Mime
View raw message