Tool for dynamically generating documentation files through introspection.
Imports modules and scans through members to generate Markdown files to feed into Doxygen. Uses dynamic introspection to obtain member lists and look up function arguments, docstrings, etc.
Markdown output is aided by a set of macros defined in the Kuroko API Documentation Doxyfile. The output should be suitable for use with a normal Doxygen build, but some additional customization is available.
Classes
_class Pair(object)
Functions
_fixup(mod)
Escapes some characters in module names to make better page IDs.
_fixupDoc(doc)
Cleans up docstring contents for display in the module list.
_functionDoc(func)
Extracts the docstring from a function and removes markup that Doxygen will choke on.
_getArgs(func)
Extract the arguments of either a managed (func.__args__
) or native (from an @arguments
docstring) function.
_isExceptionType(cls)
Determines if cls
is an Exception
type by examining its superclass chain.
_processModules(modules)
_truncateString(s)
If s
is longer than 100 characters, truncate it with an ellipsis.
_typeName(ttype)str
Get a clean type name from t