diff options
author | Georg Brandl <georg@python.org> | 2009-03-01 16:40:01 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-01 16:40:01 +0100 |
commit | 8189ade47169e064527da9cba99daa2264d13cee (patch) | |
tree | bb804fd3b2ab19b2f20afc7a08675d182be19e6b /sphinx/ext/autodoc.py | |
parent | be83ff48dc201d624b0e86db4295926d6386428f (diff) | |
download | sphinx-git-8189ade47169e064527da9cba99daa2264d13cee.tar.gz |
Re-add dependency recording in autodoc which was lost during the refactoring.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 10f2bb327..43c4b26a9 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -1051,6 +1051,11 @@ class AutoDirective(Directive): if not self.result: return self.warnings + # record all filenames as dependencies -- this will at least + # partially make automatic invalidation possible + for fn in self.filename_set: + self.env.note_dependency(fn) + # use a custom reporter that correctly assigns lines to source # filename/description and lineno old_reporter = self.state.memo.reporter |