forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r240430 - in /forrest/trunk/main/fresh-site/src/documentation: content/xdocs/samples/faq.xml skinconf.xml
Date Sat, 27 Aug 2005 15:51:45 GMT
Author: crossley
Date: Sat Aug 27 08:51:40 2005
New Revision: 240430

URL: http://svn.apache.org/viewcvs?rev=240430&view=rev
Log:
A better demonstration for MOTD and enable it. Enhance explanation.
Submitted by: Gav
Issue: FOR-650 "MOTD Needs to have a working example"

Modified:
    forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml
    forrest/trunk/main/fresh-site/src/documentation/skinconf.xml

Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml?rev=240430&r1=240429&r2=240430&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml (original)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/faq.xml Sat Aug
27 08:51:40 2005
@@ -38,5 +38,20 @@
     </faq>
     <!-- More faqs or parts here -->
   </faqsection>
+  <faqsection id="motd">
+    <title>Message of the day (MOTD).</title>
+    <faq id="motd">
+      <question>
+	How do I enable MOTD?
+      </question>
+      <answer>
+	<p>
+	  There is example MOTD code in /src/documentation/skinconf.xml.
+	  Enable this and make sure the motd-option pattern URI points
+	  to the page or pages you want the message to appear.
+	</p>
+      </answer>
+    </faq>
+  </faqsection>
   <!-- More faqs or parts here -->
 </faqs>

Modified: forrest/trunk/main/fresh-site/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/skinconf.xml?rev=240430&r1=240429&r2=240430&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/skinconf.xml (original)
+++ forrest/trunk/main/fresh-site/src/documentation/skinconf.xml Sat Aug 27 08:51:40 2005
@@ -142,33 +142,36 @@
     Note: This is only implemented in the pelt skin.
     If the optional <motd> element is used, then messages will be appended
     depending on the URI string pattern.
-    motd-option : Specifies a pattern to match and provides small text content.
+    motd-option : Each option will match a pattern and apply its text.
+      The "pattern" attribute specifies the pattern to be matched.
+      This can be a specific page, or a general pattern to match a set of pages,
+      e.g. everything in the "samples" directory.
     motd-title : This text will be added in brackets after the <html><title>
+      and this can be empty.
     motd-page : This text will be added in a panel on the face of the page,
-    with the "motd-page-url" being the hyperlink "More".
+      with the "motd-page-url" being the hyperlink "More".
     Values for the "location" attribute are:
       page : on the face of the page, e.g. in the spare space of the toc
       alt : at the bottom of the left-hand navigation panel
       both : both
     -->
-<!--
+
   <motd>
-    <motd-option pattern="docs_0_80">
-      <motd-title>v0.8-dev</motd-title>
+    <motd-option pattern="samples/sample.html">
+      <motd-title>sample</motd-title>
       <motd-page location="both">
-        This is documentation for development version v0.8
+        This is an example of a Message of the day (MOTD).
       </motd-page>
-      <motd-page-url>/versions/index.html</motd-page-url>
+      <motd-page-url>/samples/faq.html</motd-page-url>
     </motd-option>
-    <motd-option pattern="docs_0_70">
-      <motd-title>v0.7</motd-title>
+    <motd-option pattern="samples/faq.html">
+      <motd-title></motd-title>
       <motd-page location="both">
-        This is documentation for current version v0.7
+        How to enable this MOTD is on this page.
       </motd-page>
-      <motd-page-url>/versions/index.html</motd-page-url>
+      <motd-page-url>#motd</motd-page-url>
     </motd-option>
   </motd>
--->
 
   <!--
     extra-css - here you can define custom css-elements that are 



Mime
View raw message