Page MenuHomePhabricator

What's the best way to import from mediawiki into Phriction?
Closed, ResolvedPublic

Asked by mcartmell on Dec 6 2012, 12:28 PM.
Tags
None
Referenced Files
None
Tokens
"Like" token, awarded by svemir.

Details

I'm fed up of having to write wiki syntax on a separate wiki. I imagine I'm not alone. Is there an easy way to import my old wiki?

Answers

svemir
Updated 4,304 Days Ago

I wrote a script for that, but it is not very general. It works for us because we did not use MW templates and other advanced constructs. It might give you some ideas at least:

https://github.com/Symplicity/phabricator/blob/master/scripts/util/import_mediawiki.php

The config file is something like this:

{
  "wiki.url" : "https://wiki.foo.com",
  "category.map" : {
    "Foo" : "projects/foo",
    "JavaScript" : "javascript",
    ...
  },
  "conduit.user" : "mwbot",
  "conduit.cert" : "..."
}

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.