class_docstr: dependencies collector for sphinx.environment.
class_docstr_tok: ["dependencies","collector","for","sphinx.environment","."]
docstr: Process docutils-generated dependency info.
docstr_tok: ["Process","docutils-generated","dependency","info","."]
code: def process_doc(self, app: Sphinx, doctree: nodes.document) -> None:
      """Process docutils-generated dependency info."""
      cwd = os.getcwd()
      frompath = path.join(path.normpath(app.srcdir), "dummy")
      deps = doctree.settings.record_dependencies
      if not deps:
          return
      for dep in deps.list:
          # the dependency path is relative to the working dir, so get
          # one relative to the srcdir
          if isinstance(dep, bytes):
              dep = dep.decode(fs_encoding)
          relpath = relative_path(
              frompath, path.normpath(path.join(cwd, dep))
          )
          app.env.dependencies[app.env.docname].add(relpath)
  
file_path: sphinx/sphinx/environment/collectors/dependencies.py
imports: from __future__ import annotations
  import os
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils.utils import relative_path
  from sphinx.environment.collectors import EnvironmentCollector
  from sphinx.util.osutil import fs_encoding
label_desc: Use image node_id 3 for calling the DependenciesCollector obj's underlying member method code with example usage: obj.process_doc(app, doctree) without return types