Re: moving to a git-backed wiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 03, 2011 at 08:06:34PM +0100, Sverre Rabbelier wrote:

> On Thu, Feb 3, 2011 at 18:45, Jeff King <peff@xxxxxxxx> wrote:
> > Most of us don't really care if git is the ultimate storage mechanism. I
> > could even build the git interface as a purely client thing on top of
> > the CGI interface; the problem is that scraping the wiki pages for new
> > versions over the net would be horribly inefficient.
> 
> Note that MediaWiki has a stable API that you could use instead :).

The initial import is still pretty painful over the network, but at
least I know I am getting accurate data from the API now. And I can
share the git repository, and just use the RecentChanges API to get
updates.

The result is at:

  https://github.com/peff/wikitest/wiki

You can see an example of the full history:

  https://github.com/peff/wikitest/wiki/_history

or a page history:

  https://github.com/peff/wikitest/wiki/GitFaq/_history

Or download the repository for yourself:

  git://github.com/peff/wikitest.wiki.git

The whole git wiki is about a 4M git repository (and at least some of
that is spam that's deleted but still in the history).

This is has been a cute exercise, but I'm not sure mirroring it in a
gollum wiki really makes sense. It's cool that gollum understands
MediaWiki enough to actually render the pages at all, but there are
obviously lots of corner cases that it just doesn't get (formatting
issues, missing images, some redirect naming issues).

Still, it's useful as a local repo doing diffs. I just wrote the initial
importer (which I'm happy to share if somebody wants to see some ugly
code), but to act as a useful client, it still needs:

  1. Incremental updating from the RecentChanges API.

  2. Push support (or more likely something similar to "git svn
     dcommit") to push edits back.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]