diff options
| author | Georg Brandl <georg@python.org> | 2014-09-22 21:55:11 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-09-22 21:55:11 +0200 |
| commit | 81b87b9d7fcb49c52e82bc41b831da924370fe4f (patch) | |
| tree | 55f2f77d70062e1586b704c5222f4382e107e2dc /doc/extdev | |
| parent | 052b2ba1233c08d77b65b21635336378e5259ebf (diff) | |
| download | sphinx-81b87b9d7fcb49c52e82bc41b831da924370fe4f.tar.gz | |
Document env-merge-info event, add parallel reading to changelog
Diffstat (limited to 'doc/extdev')
| -rw-r--r-- | doc/extdev/appapi.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/extdev/appapi.rst b/doc/extdev/appapi.rst index d65f91a5..d5d1c033 100644 --- a/doc/extdev/appapi.rst +++ b/doc/extdev/appapi.rst @@ -493,6 +493,24 @@ handlers to the events. Example: Here is the place to replace custom nodes that don't have visitor methods in the writers, so that they don't cause errors when the writers encounter them. +.. event:: env-merge-info (env, docnames, other) + + This event is only emitted when parallel reading of documents is enabled. It + is emitted once for every subprocess that has read some documents. + + You must handle this event in an extension that stores data in the + environment in a custom location. Otherwise the environment in the main + process will not be aware of the information stored in the subprocess. + + *other* is the environment object from the subprocess, *env* is the + environment from the main process. *docnames* is a set of document names + that have been read in the subprocess. + + For a sample of how to deal with this event, look at the standard + ``sphinx.ext.viewcode`` extension. + + .. versionadded:: 1.3 + .. event:: env-updated (app, env) Emitted when the :meth:`update` method of the build environment has |
