Tom Roche Sat, 23 Jun 2012 18:56:31 -0400
>> OTOH, editing a GHW [github wiki, aka gollum]
is a joy. A GHW is
>> backed by a git repo, so I can interact with it "VC-style":
>> # whack away @ local files with my local
editor
which happens to be emacs
>> # commit to my local repo
>> # push to remote on github
which can be done in-emacs
>> # refresh my browser
Mark A. Hershberger Sun Jun 24 00:55:29 UTC 2012
> it seems like this would be straight-forward --
kind of like
> post-commit hook.
Platonides 6/24/2012 12:42 PM
MediaWiki expects more things than just the text. If
you are only
editing mediawiki through git, then yes, it would be easy: Add a
post-commit hook in the git server which [ran]
maintenance/importTextFile.php of the modified files.
If there are also edits at MediaWiki side, then
you'd also need an
extension which hooks mediawiki to convert edits to git commits.
However, you could replace git with [API calls] which
performed
edits.
And, after a bit of googling, I noticed
https://www.mediawiki.org/wiki/API
but I'm not seeing any lists of tools implementing the API (though
there are lotsa libraries). What's out there? E.g., will
https://launchpad.net/mediawiki-el
do what I want? which, for a non-VC-backed implementation, would be
something like
1 utter keychord to create buffer with MW page contents from URI
2 whack away @ buffer (with usual emacs commands)
3 utter keychord which transparently utters MW API to preview my edit
4 loop 2-3, until
5 utter keychord which transparently utters MW API to save
? TIA, Tom Roche <Tom_Roche(a)pobox.com>