docs: def register_template_directory(kb_app: kb,
                                  sphinx_app: Sphinx,
                                  sphinx_env: BuildEnvironment,
                                  docnames=List[str],
                                  ):
      """ Add this resource's templates dir to template paths """
  
      template_bridge = sphinx_app.builder.templates
  
      actions = ResourceAction.get_callbacks(kb_app)
  
      for action in actions:
          f = os.path.dirname(inspect.getfile(action))
          template_bridge.loaders.append(SphinxFileSystemLoader(f))