forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r534201 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki: input.xmap src/documentation/content/xdocs/index.xml src/documentation/content/xdocs/samples/index.xml src/documentation/content/xdocs/site.xml status.xml
Date Tue, 01 May 2007 19:04:14 GMT
Author: rgardler
Date: Tue May  1 12:04:13 2007
New Revision: 534201

URL: http://svn.apache.org/viewvc?view=rev&rev=534201
Log:
Add Google Code Wiki markup

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/index.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/samples/index.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/site.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/status.xml

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/input.xmap?view=diff&rev=534201&r1=534200&r2=534201
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/input.xmap Tue May  1 12:04:13
2007
@@ -74,6 +74,20 @@
             <map:serialize type="xml-document"/>
           </map:match>
         </map:when>
+        <!-- Google Code Wiki Markup -->
+        <map:when test="{lm:project.{uri}.wiki}">
+          <map:match type="regexp" pattern="^(.*?)([^/]*).xml$">
+            <map:generate type="text2xml" src="{lm:project.{1}{2}.wiki}" />
+            <map:transform type="lexer"   src="cocoon:/googlewiki.xlex"/>
+            <map:transform type="parser"  src="cocoon:/googlewiki.xgrm"/>
+            <map:transform type="xsltc" 
+              src="{lm:wiki.transform.googlewiki.xdoc}">
+              <map:parameter name="name" value="{2}" />
+              <map:parameter name="spaceless-filenames" value="true"/>
+            </map:transform>
+            <map:serialize type="xml-document"/>
+          </map:match>
+        </map:when>
       </map:select>
     </map:resource>
   </map:resources>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/index.xml?view=diff&rev=534201&r1=534200&r2=534201
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/index.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/index.xml
Tue May  1 12:04:13 2007
@@ -33,8 +33,9 @@
           The following wiki formats are supported:
         </p>
         <ul>
-          <li>MoinMoin, with files named *.moinwiki</li>
-          <li>JSPWiki, with files named *.jspwiki (*.cwiki is supported for backwards-compatibility)</li>
+            <li><a href="site:sample/moinwiki">MoinMoin</a>, with files
named *.moinwiki</li>
+            <li><a href="site:sample/jspwiki">JSPWiki</a>, with files named
*.jspwiki (*.cwiki is supported for backwards-compatibility)</li>
+            <li><a href="site:sample/google">Google Code</a>, with files
named *.wiki</li>
         </ul>
       </section>
     </section>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/samples/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/samples/index.xml?view=diff&rev=534201&r1=534200&r2=534201
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/samples/index.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/samples/index.xml
Tue May  1 12:04:13 2007
@@ -29,6 +29,7 @@
       <ul>
         <li><a href="site:sample/moinwiki">MoinMoin</a></li>
         <li><a href="site:sample/jspwiki">JSPWiki</a></li>
+        <li><a href="site:sample/google">Google Code</a></li>
       </ul>
     </section>
   </body>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/site.xml?view=diff&rev=534201&r1=534200&r2=534201
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/site.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/src/documentation/content/xdocs/site.xml
Tue May  1 12:04:13 2007
@@ -30,16 +30,19 @@
 -->
 <site label="moinmoin" href="" xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
   <about label="About">
-    <index label="Index" href="index.html" description="Welcome to moinmoin"/>
+    <index label="Index" href="index.html" description="Welcome to the wiki input plugin"/>
     <forrestPlugins label="Plugins Index" href="site:forrest/plugins" description="Index
of Forrest Plugins"/>
     <changes label="Changes" href="changes.html" description="History of Changes" />
     <todo label="Todo" href="todo.html" description="Todo List" />
   </about>
   <sample label="Samples" href="samples/" tab="samples">
+    <index label="Index" href="index.html" description="Samples for the wiki input plugin"/>
     <jspwiki label="JSPWiki" href="jspwiki-sample.html" 
       description="Example of a JSPWiki syntax wiki page"/>
     <moinwiki label="MoinMoin Wiki" href="moin-sample.html" 
       description="Example of a MoinMoin Wiki syntax wiki page"/>
+    <google label="Google Code Wiki" href="google-sample.html" 
+      description="Example of a Google Code Wiki syntax wiki page"/>
   </sample>
 <!--
   The href must be wholesite.html/pdf  You can change the labels and node names

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/status.xml?view=diff&rev=534201&r1=534200&r2=534201
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.wiki/status.xml Tue May  1 12:04:13
2007
@@ -22,6 +22,9 @@
   </developers>
   <changes>
     <release version="0.2-dev" date="not-released">
+      <action type="add" context="code" dev="RDG">
+        Added handling of Google Code wiki format. See <a href="site:sample/google">sample</a>.
+      </action>
       <action type="fix" context="code" dev="RDG" fixes-bug="680"
         due-to="Sjur N. Moshagen, Gavin">
         Corrected processing of nested lists so that sub-lists are properly



Mime
View raw message