The rstGeneration module contains classes and functions which provide the ability to generate a single reStructured text formatted file for each of the modules contained within a main Python project.
The RstOptions class encapsulates all the options that can be passed to the RST generation class to configure the generated output.
inheritance – True to include inheritance diagrams for each class
overwrite – True to overwrite existing files
extension – The extension to use for generated files
will be created for these modules)
modifiedDirectory – The modified directory
The RstModuleDirectory encapsulates the functionality of writing a file in reStructured text format for a given Python module which is a directory containing one or more Python sub-modules.
The RstBase class provides the base functionality used to create RstFiles based off of Python modules. It takes a module name and provides the ability to write the output in reStructured text format.
The contentFunctions property should be set to a list of class function names. These functions will be called, in order, to return a list of lines to add to the final generated file.
Each content function takes an RstOptions object as its only parameter, and should return a list of strings.
The RstModule class encapsulates the functionality of writing a file in reStructured text format for a given Python module which is a single Python file.