[docs]defsetup(app:Sphinx)->dict[str,Any]:"""Register the directive and configuration variable."""from.directiveimportJsonSchemaDiffDirectiveapp.add_directive("jsonschemadiff",JsonSchemaDiffDirective)# единственная настраиваемая переменнаяapp.add_config_value("jsonschema_diff",None,"env")# гарантируем наличие _static в html_static_pathstatic_root=Path(app.srcdir)/"_static"ifstr(static_root)notinapp.config.html_static_path:app.config.html_static_path.append(str(static_root))return{"version":"0.4.0","parallel_read_safe":True,"parallel_write_safe":True,}