cogFilter stream extension to parse a DokuWiki TEXT package
TypeJAR
CategoryFilter
Developed by

Thomas Mortagne, Shubham Jain

Active Installs0
Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager

Description

Filter stream extension to parse a DokuWiki data package compressed and archived as a "tar.gz". DokuWiki stores pages in text format. 

Supported input

Data as TGZ

DokuWiki doesn't use a database system, rather a uses file based storage where all the data associated to the wiki is stored in the "dokuwiki" folder of the DokuWiki installation (typically in /var/www). This folder can be used for backing up or exporting the wiki. The wiki spaces and documents are stored in the dokuwiki/data/pages/ directory as text files, see https://www.dokuwiki.org/faq:backup. DokuWiki also recommends packaging the data folder as TGZ to preserve file metadata such as file timestamps, see https://www.dokuwiki.org/faq:servermove. 

Import a DokuWiki data to XWiki instance

filterapp.png

dokuwikitext.png

  • After you have installed the two extensions, click on the Filter Stream Converter entry from the Applications panel
  • Choose the "XWiki instance output stream (xwiki+instance)" output type
  • Choose the "DokuWiki Text input stream (dokuwiki+text)" input type
    • Enter the path of the DokuWiki's directory as any apache compress supported format  like tgz or zip, in case of file, enter the path followed by 'file:', as shown below.
    • If this is your first time, leave everything else to default values. 

filterconfig.png

After you have completed these steps, click the "Convert" button. After that, you will see the conversion progress.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.dokuwiki:dokuwiki-text 1.0):

  • de.ailis.pherialize:pherialize 1.2.1
  • org.apache.commons:commons-compress 1.12
  • commons-codec:commons-codec 1.10
  • commons-configuration:commons-configuration 1.10
  • org.xwiki.platform:xwiki-platform-filter-event-model 8.4
  • org.xwiki.platform:xwiki-platform-filter-event-user 8.4
  • org.xwiki.platform:xwiki-platform-model 8.4
  • org.xwiki.contrib.dokuwiki:dokuwiki-syntax 1.0
  • org.xwiki.rendering:xwiki-rendering-syntax-xwiki21 8.4
  • xerces:xercesImpl 2.11.0
Tags:
Created by Thomas Mortagne on 2017/06/27 09:37
    

Get Connected