diff options
author | Georg Brandl <georg@python.org> | 2014-09-22 09:13:44 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-22 09:13:44 +0200 |
commit | 5d0f7b1afe43b5349ebe6793019365b218d79ff9 (patch) | |
tree | 1c88e10d0ff17f491b312376422725e865bada28 /doc | |
parent | e5facf6fc41ccb0d964b12d3b7701caa77679f85 (diff) | |
download | sphinx-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.rst | 14 |
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) |