sphinx/environment/collectors/dependencies.py
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)
Process docutils-generated dependency info.
Process docutils-generated dependency info.
Process docutils - generated dependency info .
def process_doc(self, app: Sphinx, doctree: nodes.document) -> None:
        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:
            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)
def process_doc ( self , app : Sphinx , doctree : nodes . document ) -> None : 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 : 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 )
Process docutils-generated dependency info.
Process docutils - generated dependency info .
"""Process docutils-generated dependency info.""" # the dependency path is relative to the working dir, so get # one relative to the srcdir
self
app
Sphinx
doctree
nodes.document