yamdwe icon indicating copy to clipboard operation
yamdwe copied to clipboard

WIP: Migrate mediawiki to a namespace in dokuwiki for inclusion in existing dokuwiki

Open loz-hurst opened this issue 5 years ago • 3 comments

Started working on moving all mediawiki content to sub-namespace in dokuwiki so that an old wiki can be kept in it's own namespace in a new dokuwiki.

Current issues:

  • namespace name ('old_wiki') is hardcoded - should be a commandline option
  • This change breaks all tests that assume structure is rooted at the same place in both for the purposes of links etc.

WIP merge request created for others to be able to refer to this as a basis for their own migrations.

loz-hurst avatar Aug 20 '19 15:08 loz-hurst

@loz-hurst Neat idea! If it's helpful I've merged the other PRs so you should be able to rebase on the master branch.

projectgus avatar Aug 22 '19 11:08 projectgus

@loz-hurst Neat idea! If it's helpful I've merged the other PRs so you should be able to rebase on the master branch.

I've done that. I don't know how much further I'll get with this to be honest - like most people, I imagine, I'm using it for a one-shot migration so the hard-coded new namespace works for us and it breaks all the tests (as the links assume a 1:1 translation). I'm under pressure at work to just deliver the migration so finishing this off into a mergeable form is likely to take a back seat.

loz-hurst avatar Aug 22 '19 13:08 loz-hurst

I've done that. I don't know how much further I'll get with this to be honest - like most people, I imagine, I'm using it for a one-shot migration so the hard-coded new namespace works for us

Understand entirely! I think back when I made this (the one-shot time I was using it), I found that it was easy enough to manually re-arrange & re-merge everything once it was imported into dokuwiki.

Please @-mention me if you do end up finishing this, and I'll take a look at the PR again.

projectgus avatar Aug 23 '19 07:08 projectgus