Thread:Project:Current issues/Api documentation bot

Hi,

Just a quick notice, letting you know I'm currently working on a bot that get's documentation from the PHP classes (required rights, must be posted, parameter optional/required + description, examples etc.) into wikitext and saving to a wiki page.

Zak originally created something for this (example), but the source code remains unpublished and the format has changed a lot since then.

Roughly what I've got / aiming for (about 50% done)
 * Extract module name/class pairs from
 * Loop over and instantiate it:
 * Buid a documentation page in wikitext format:
 * API-head with parameter values from,   etc.
 * Parameter section build with a function based on  but in wikitext format
 * Examples section based on array from, which is then dissected into parts for ApiEx, followed by an http request to exampleurl+format=xmlfm and output cleaned up and unescaped and fed to result-parameter of ApiEx.
 * Categories
 * Either write wikitext to a file and let another bot save to wiki, or write a simple wikibot and save right away.

To be done:
 * Example section
 * Saving mechanism

Any ideas / existing code I can look at ?