summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-01 16:40:01 +0100
committerGeorg Brandl <georg@python.org>2009-03-01 16:40:01 +0100
commit8189ade47169e064527da9cba99daa2264d13cee (patch)
treebb804fd3b2ab19b2f20afc7a08675d182be19e6b /sphinx/ext/autodoc.py
parentbe83ff48dc201d624b0e86db4295926d6386428f (diff)
downloadsphinx-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.py5
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