def setup(app): """add custom directive into Sphinx so that it is found during document parsing""" app.add_directive('embed-code', EmbedCodeDirective) node_setup(app) return {'version': sphinx.__display_version__, 'parallel_read_safe': True}