converting_docuwiki_to_mediawiki

This is an old revision of the document!


This wiki is written in the docuWiki syntax, which is close to but different from mediaWiki (used by Wikipedia and others). Thanks to a little googling, I found:

Sample Steps

mkdir dokuwiki2mediawiki
cd dokuwiki2mediawiki
 
#Get script (raw format from github)
wget https://raw.githubusercontent.com/tstaerk/mediasyntax/master/tools/dokuwiki2mediawiki.php
 
#Test, and see arguments
php dokuwiki2mediawiki.php
 
# copy original file to this location
cp /path/to/docuwiki/data/pages/subdir/page_i_want.txt .
 
# Convert file
php dokuwiki2mediawiki.php page_i_want.txt
 
# View new markup
vi page_i_want.txt.mod
 
# Email new markup file to myself
echo "see attached" | mutt -a page_i_want.txt.mod -s "Email Subject" -- email_address@example.com
  • converting_docuwiki_to_mediawiki.1521390359.txt.gz
  • Last modified: 2021/01/12 21:08
  • (external edit)