summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-22 09:13:44 +0200
committerGeorg Brandl <georg@python.org>2014-09-22 09:13:44 +0200
commit5d0f7b1afe43b5349ebe6793019365b218d79ff9 (patch)
tree1c88e10d0ff17f491b312376422725e865bada28 /doc
parente5facf6fc41ccb0d964b12d3b7701caa77679f85 (diff)
downloadsphinx-5d0f7b1afe43b5349ebe6793019365b218d79ff9.tar.gz
Rename env-read-docs to env-before-read-docs, add changelog entry and fixup tests.
Diffstat (limited to 'doc')
-rw-r--r--doc/extdev/appapi.rst14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/extdev/appapi.rst b/doc/extdev/appapi.rst
index 65dd7c69..f9b43560 100644
--- a/doc/extdev/appapi.rst
+++ b/doc/extdev/appapi.rst
@@ -437,13 +437,17 @@ handlers to the events. Example:
.. versionadded:: 0.5
-.. event:: env-read-docs (app, env, docnames)
+.. event:: env-before-read-docs (app, env, docnames)
- Emited after get the list of all added and changed files and just before
- read them. It allow extension author modify docnames list before processing;
- reordering, append and remove.
+ Emitted after the environment has determined the list of all added and
+ changed files and just before it reads them. It allows extension authors to
+ reorder the list of docnames (*inplace*) before processing, or add more
+ docnames that Sphinx did not consider changed.
- .. versionadded:: 1.3.0
+ You can also remove document names; do this with caution since it will make
+ Sphinx treat changed files as unchanged.
+
+ .. versionadded:: 1.3
.. event:: source-read (app, docname, source)