'Generate API reST files.
Parameters
outdir : string
Directory name in which to store files
We create automatic filenames for each module
Returns
None
Notes
Sets self.written_modules to list of written modules'

def write_api_docs(self, outdir):

    if (not os.path.exists(outdir)):
        os.mkdir(outdir)
    modules = self.discover_modules()
    self.write_modules_api(modules, outdir)
