'Process docutils-generated dependency info.'

def process_doc(self, app, doctree):

    cwd = 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)
