converting_docuwiki_to_mediawiki

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
 
#Convert all
find -type f -name '*.txt' -exec php dokuwiki2mediawiki.php {} \;
 
# 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.txt
  • Last modified: 2021/01/12 21:08
  • by 127.0.0.1