You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/07/27 16:18:40 UTC

[Lenya Wiki] Trivial Update of "HowToExportStaticHTML" by BobHarner

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by BobHarner:
http://wiki.apache.org/lenya/HowToExportStaticHTML

The comment on the change is:
Added reference to the FAQ question mentioning the same topic.

------------------------------------------------------------------------------
  == Export Static HTML ==
  
  
+ This describes how to set up your publication so that each time you publish a page a static html file is created (typically to be served directly by a web server).  This is an expansion of the FAQ question "Can a local Lenya instance generate a site that is deployed on a remote hosting service?" at http://lenya.apache.org/1_2_x/how-to/faq.html:
- {{{
- To set up your publication for static html export:
- }}} 
  
  In the file located at \pubs\*YOUR PUBLICATION*\config\tasks\tasks.xconf look for the commented out lines and uncomment.
  
+ {{{
+ <!--
+ <task id="export" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
+     <parameter name="export-path" value="work/export/pending"/>
+     <parameter name="substitute-regexp" value="/lenya/default/live/"/>
+     <parameter name="substitute-replacement" value="/"/>
+     <parameter name="my-server-port" value="1313"/>
+ </task>
+ -->
+ }}}
  
+ To change the directory as to where the files are stored alter the line
- <!--
-     <task id="export" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
-       <parameter name="export-path" value="work/export/pending"/>
  
-       <parameter name="substitute-regexp" value="/lenya/default/live/"/>
+ <parameter name="export-path" value="work/export/pending"/>
  
-       <parameter name="substitute-replacement" value="/"/>
- 
-       <parameter name="my-server-port" value="1313"/>
-     </task>
- --> 
- 
- 
- To change the directory as to where the files are stored alter the line  
- 
- <parameter name="export-path" value="work/export/pending"/> 
-   
  change the value to the physical path that you want your static html to be value=”c:\somefolder\someotherfolder\etc”  the folders do not have to be created before you export your html, they will be dynamically generated.
  
  
@@ -41, +36 @@

  == You can also specify multiple places to store the static html: ==
  	In the file tasks.xconf
  
- 
+ {{{
  <task id="publish">
  		:
  		:
  		:
-        <task id="export" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
+ <task id="export" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
- 
-         <parameter name="export-path" value="c:/somedirectory"/>
+     <parameter name="export-path" value="c:/somedirectory"/>
- 
-         <parameter name="substitute-regexp" value="/lenya/default/live/"/>  - no idea as to what this does
+     <parameter name="substitute-regexp" value="/lenya/default/live/"/>  - what does this do?
- 
-         <parameter name="substitute-replacement" value="/"/> - no idea as to what this does
+     <parameter name="substitute-replacement" value="/"/>                - what does this do?
+     <parameter name="my-server-port" value="1313"/>                     - what does this do?
- 
-         <parameter name="my-server-port" value="1313"/> - no idea as to what this does
- 
-       </task>
-     
-       <task id="export-backup" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
- 
-         <parameter name="export-path" value="c:/somedirectory-backup"/>
- 
-         <parameter name="substitute-regexp" value="/lenya/default/live/"/> - no idea as to what this does 
- 
-         <parameter name="substitute-replacement" value="/"/> - no idea as to what this does
- 
-         <parameter name="my-server-port" value="1313"/> - no idea as to what this does
-       </task>
  </task>
  
+ <task id="export-backup" class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
+     <parameter name="export-path" value="c:/somedirectory-backup"/>
+     <parameter name="substitute-regexp" value="/lenya/default/live/"/>  - what does this do?
+     <parameter name="substitute-replacement" value="/"/>                - what does this do?
+     <parameter name="my-server-port" value="1313"/>                     - what does this do?
+ </task>
+ 
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org