moin2doku/README.md

94 lines
2.7 KiB
Markdown
Raw Permalink Normal View History

2012-09-22 18:32:55 +02:00
Complete MoinMoin to DokuWiki converter
2015-07-31 10:02:03 +02:00
=======================================
2011-02-06 19:30:29 +01:00
2012-09-22 18:32:55 +02:00
Uses native MoinMoin modules to handle converting and translating paths.
Converts also page history and edit-log.
2011-02-10 10:00:19 +01:00
2012-09-22 18:32:55 +02:00
http://www.dokuwiki.org/tips:moinmoin2doku
2011-02-10 10:00:19 +01:00
Tested with MoinMoin 1.9.9 and DokuWiki 2018-04-22 releases under Windows 7
2012-09-22 18:23:47 +02:00
2012-09-22 18:32:55 +02:00
You need to run this on host where both MoinMoin and DokuWiki are configured,
it uses current configuration from both wikis.
2011-02-10 10:00:19 +01:00
Edit `doku.php` if your DokuWiki installation is other than `/usr/share/dokuwiki`
2011-02-10 10:00:19 +01:00
2012-09-22 18:23:47 +02:00
To convert moinmoin all pages with history, invoke:
2015-07-31 10:02:03 +02:00
```
2012-09-22 18:23:47 +02:00
$ ./moin2doku.py -a -d /var/lib/dokuwiki
2015-07-31 10:02:03 +02:00
```
2012-09-22 18:23:47 +02:00
To convert single page (FrontPage):
2015-07-31 10:02:03 +02:00
```
2012-09-22 18:23:47 +02:00
$ ./moin2doku.py -F moinmoin/data/pages/FrontPage -d out
2015-07-31 10:02:03 +02:00
```
2011-02-10 10:00:19 +01:00
2015-07-31 10:02:03 +02:00
You should invoke `bin/indexer.php` after conversion to make all pages are indexed.
2012-09-24 16:03:11 +02:00
and ensure ownership of files is correct:
2015-07-31 10:02:03 +02:00
(`www-data:www-data` being your uid/gid webserver runs):
```
2011-02-10 10:00:19 +01:00
# chown -R www-data:www-data /var/lib/dokuwiki/pages/*
# chown -R www-data:www-data /var/lib/dokuwiki/media/*
2015-07-31 10:02:03 +02:00
```
2012-09-24 16:03:11 +02:00
additionally, depending on your configuration, you may need to gzip the attic pages.
2011-02-10 10:00:19 +01:00
Hints for Windows Users
-----------------------
The Batchfiles (`*.cmd`) should help to do the conversation under Windows. You should
create a copy of the `settings.cmd` and call it `settings.local.cmd` to set your
own local paths.
Call `moin2doku.cmd` to convert the full MoinMoin Wiki. All DokuWiki pages will be
written to an `out` folder in the current directory.
This will convert a single page:
```
D:\moin2doku\> moin2doku.cmd MyMoinPage
```
Set `%OUTDIR%` to an alternativ output folder. This should not be the dokuwiki `data`
folder if you want to do a full conversation.
The `reindex.cmd` will call the `bin/indexer.php`-Skript.
2015-07-31 10:02:03 +02:00
History
=======
version 0.1 (2010-02)
-------------------
Slim Gaillard, based on the "extended python" convert.py script here:
https://www.dokuwiki.org/tips:moinmoin2doku?rev=1297006559#extended_python
version 0.2 (2011)
----------------
Elan Ruusamäe, moved to github, track history there
https://github.com/glensc/moin2doku
2012-09-22 18:32:55 +02:00
2015-07-31 10:02:03 +02:00
version 1.0 (2012)
----------------
2012-09-22 18:32:55 +02:00
2015-07-31 10:02:03 +02:00
Complete moinmoin to dokuwiki converter, uses native moinmoin code to handle
converting and translating paths. Converts also page history and edit-log.
This marks the project "done", I will no longer develop it or support it, as I got my conversion done. However, I do accept patches (pull requests) to sane amount.
I put repo online so others have better starting point than I did.
2016-01-07 18:35:39 +01:00
version 1.1 (2015)
----------------
Modifed the script to work with newer Moin versions and API changes.
version 1.2 (2019-01)
----------------
Some modifications to work with current DokuWiki and added more formattings.
Search GitHub Forks for newer versions of this project.