Offline mediawiki

From Bjoern Hassler's website
Jump to: navigation, search
"Mediawiki mirroring and synchronisation"

Mediawiki mirroring and synchronisation - Mirroring - moving - Offline mediawiki (mvs, MWEclipse) - API/Mirroring - Mwlib - OAI - [Edit]

1 Offline wiki - take the wiki with you[edit]

At least, you should be able to view the wiki offline. This is essential if people contribute valuable information (say tutorial), but if your connection doesn't work on the day you need the tutorial, you still need to be able to get it.

This page is about 'personal' solutions, where the 'offline' wiki is only used by one person, e.g. in their browser, or on their desktop. For other solutions, see Mediawiki mirror.

2 No round trip[edit]

2.1 Pdf via collections[edit]

See the collections extension above. It allows you to download pdf files that contain series of articles. I.e. you can turn the information given here into 'books', and download pdfs, e.g. to make handouts. You can see our test here: Collections example.

2.2 Offline html copies[edit]

It would be nice if the wiki could be replicated. I.e. make a copy on a local area network server (within a University), that has bi-directional synchronisation.

While this is desirable, it's also quite hard. It might be sufficient to have a system where the wiki can be viewed locally, but for edits, people need to be online. I.e. have unidirectional synchronisation. A single 'master' wiki, where people can edit, and several replicas. That would be easier to do, and an implementation is presented on Mediawiki mirror.

However, for the purpose of this page (and 'personal offline copies'), at least you should be able to view the wiki offline. This is essential if people contribute valuable information (say tutorial), but if your connection doesn't work on the day you need the tutorial, you still need to be able to get it.

  • It's easy to make a solution with wget, that allows the mirroring of a wiki. (Updated) pages are retrieved, and a perl script reconstructs all the links. This could be run every night on a remote server to update the master wiki (as read-only copy) to that remote server. (No admin access needed.)
  • The wiki can also be dumped to html using tools in the wiki maintenance directory. (Admin access needed.)
ADD RECIPE

2.3 Google Gears for offline viewing[edit]

There's a solution here http://wiki.yobi.be/wiki/Mediawiki_LocalServer that allows the whole wiki to be stored 'transparently'. I.e. when you are online, you see the wiki online. When you are offline, you see the cached copy. You cannot edit offline, but at least you can see all wiki pages offline. See Offline mediawiki in your browser.

3 Round trip[edit]

How about taking the wiki offline, and then synchonising your changes back? Mediawiki has got an api, see http://www.ict4e.net/wiki/api.php , so you could use this to fetch recent changes from the master wiki, and push these into a local wiki, see alsp MediaWiki-API.

The following tools can offline wiki pages, to put copies onto your Desktop, which can then be edited and uploaded.

3.1 Most promising:[edit]

3.2 Less promising[edit]

Out of date?

3.3 Offline editing of pages[edit]

The following don't quite do page offlining or cvs like behaviour, but could help editing pages once you've got them (e.g. with mvs).

4 Synchronisation and replication[edit]

As mentioned above, it would be nice if the wiki could be replicated. I.e. make a copy on a local area network server (within a University), that has bi-directional synchronisation. While this is desirable, it's also quite hard.