[dokuwiki] Re: How to have externally generated pages versioned?

Marc Haber wrote:
Hi,

I am using dokuwiki to document "my" network. To have direct links to
network device configuration files, I have a script that
unceremoniously dumps the configuration from the devices and throws it
into a directory under my dokuwiki pages directory with extension of
.txt.

As a result (modulo caching), the configuration files become
accessible from inside the wiki as wiki pages. Of course, the pages
only have a single revision, and thus it is not possible ot review
configuration history.

I am now wondering whether it would be possible to automatically feed
the configuration files to dokuwiki in a way that allows the wiki
functions, most of all the revision handling, to do their magic.

You might look at using some sort of source code revision tool for the job. Something like Subversion is built for this sort of task and can be pretty easily set up to have a web frontend to the versioning. Then you have access to quite a few more powerful versioning capabilities. You could then just link to different pages using dokuwiki if you had to have access from the wiki. Personally, I've used subversion (or svk) to keep track of my configuration changes and it has worked very, very well.


Not that you couldn't do this sort of thing after hacking together some scripts or investigating dwpage.php, but if you're trying to fit your source code revision peg into the dokuwiki hole, it might be easier and a better fit to try the source code revision software hole (the whole square peg into a round hole deal).

Jason
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: