def METHOD_NAME(self):
    """Create Sphinx app inside context."""
    with docutils_namespace():
        app = Sphinx(
            self.srcdir,
            self.confdir,
            self.outdir,
            self.doctreedir,
            self.buildername,
            **self.kwargs,
        )
        yield app