templates/default/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile in Soks-0.0.7 vs templates/default/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile in Soks-1.0.0
- old
+ new
@@ -1,7 +1,27 @@
h1. How to export a site from this wiki
+h2. How to export as html
+
+Modify your start.rb file to include:
+<pre>
+<code>
+require 'helpers/wiki2html'
+Wiki2Html.new( wiki, view,
+:views_to_copy => ['view','meta','rss'],
+:extension => '.html',
+:destination_dir => '/Users/tamc2/Sites',
+:destination_url => 'http://localhost/~tamc2')
+</code>
+</pre>
+
+Where desitination_dir should be the directory you wish to export the html to, and destination_url should be the base_url you wish to use in the exported pages (could be just '/').
+
+When you restart the wiki it will then maintain an html copy of the wiki in that directory.
+
+h2. How to export the raw data
+
The contents of this site are stored in flat files in the 'contents' folder of this wiki (soks-wiki/contents by default). They are the ones with the .textile ending. Should be pretty easy to transfer them to wherever you need.
The authors, and change history of each page are stored in the same folder with a yaml extension. These are yaml'd files that contain many documents. Each document contains a single revision. Each revision is an array of [ revision number, changes, author, creation time ]. The changes is an array of change groups. Each change group is an array of changed lines. There may be several documents with the same revision number. The last document with a particular revision number is the 'definative' one.
E.g. The saved copy of a page titled Hello World would be two files:
@@ -56,5 +76,7 @@
- "+"
- 2
- What a beautiful world
-
</pre>
+
+Tag: Include this page in the distribution