Generate configuration documentation in reStructuredText_ syntax.

    :param options: Any keyword arguments are passed on to the
                    :class:`ConfigLoader` initializer.

    This methods injects the generated documentation into the output generated
    by cog_.

    .. _cog: https://pypi.python.org/pypi/cogapp

def inject_documentation(**options):
    """
    Generate configuration documentation in reStructuredText_ syntax.

    :param options: Any keyword arguments are passed on to the
                    :class:`ConfigLoader` initializer.

    This methods injects the generated documentation into the output generated
    by cog_.

    .. _cog: https://pypi.python.org/pypi/cogapp
    """
    import cog
    loader = ConfigLoader(**options)
    cog.out("\n" + loader.documentation + "\n\n")