code: def call_doctree_resolved(cls, kb_app, sphinx_app: Sphinx,
                                doctree: doctree,
                                fromdocname: str):
          
  
          for callback in EventAction.get_callbacks(kb_app,
                                                    SphinxEvent.DRES):
              callback(kb_app, sphinx_app, doctree, fromdocname)
docs: On doctree-resolved, do callbacks