[dokuwiki] How to have externally generated pages versioned?

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.

My first idea would be a script that takes a new wiki page source on
standard input and a page name on the command line, verifies whether
the page found in the wiki is identical to what is fed to the script
on standard input, and handles the new page source appropriately: If
no change to the version in the wiki is found, do nothing. And if a
change is found, take the new version from stdin, put it in the wiki,
while going through the appropriate motions to properly handle the
existing page revisions.

Does such a beast exist? Or is there some other way to put externally,
automatically generated data into the wiki with versioning?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: