class EnvironmentCollector: (source)
Known subclasses: sphinx.environment.collectors.asset.DownloadFileCollector
, sphinx.environment.collectors.asset.ImageCollector
, sphinx.environment.collectors.dependencies.DependenciesCollector
, sphinx.environment.collectors.metadata.MetadataCollector
, sphinx.environment.collectors.title.TitleCollector
, sphinx.environment.collectors.toctree.TocTreeCollector
An EnvironmentCollector is a specific data collector from each document. It gathers data and stores :py:class:`BuildEnvironment <sphinx.environment.BuildEnvironment>` as a database. Examples of specific data would be images, download files, section titles, metadatas, index entries and toctrees, etc.
Method | clear |
Remove specified data of a document. |
Method | disable |
Undocumented |
Method | enable |
Undocumented |
Method | get |
Return a list of docnames to re-read. |
Method | get |
Return a list of docnames to re-read. |
Method | merge |
Merge in specified data regarding docnames from a different `BuildEnvironment` object which coming from a subprocess in parallel builds. |
Method | process |
Process a document and gather specific data from it. |
Instance Variable | listener |
Undocumented |
sphinx.environment.collectors.asset.DownloadFileCollector
, sphinx.environment.collectors.asset.ImageCollector
, sphinx.environment.collectors.dependencies.DependenciesCollector
, sphinx.environment.collectors.metadata.MetadataCollector
, sphinx.environment.collectors.title.TitleCollector
, sphinx.environment.collectors.toctree.TocTreeCollector
Remove specified data of a document. This method is called on the removal of the document.
Parameters | |
app:Sphinx | Undocumented |
env:BuildEnvironment | Undocumented |
docname:str | Undocumented |
sphinx.environment.collectors.toctree.TocTreeCollector
Return a list of docnames to re-read. This methods is called after reading the whole of documents (experimental).
Parameters | |
app:Sphinx | Undocumented |
env:BuildEnvironment | Undocumented |
Returns | |
list[ | Undocumented |
sphinx.environment.collectors.asset.DownloadFileCollector
, sphinx.environment.collectors.asset.ImageCollector
, sphinx.environment.collectors.dependencies.DependenciesCollector
, sphinx.environment.collectors.metadata.MetadataCollector
, sphinx.environment.collectors.title.TitleCollector
, sphinx.environment.collectors.toctree.TocTreeCollector
Merge in specified data regarding docnames from a different `BuildEnvironment` object which coming from a subprocess in parallel builds.
Parameters | |
app:Sphinx | Undocumented |
env:BuildEnvironment | Undocumented |
docnames:set[ | Undocumented |
other:BuildEnvironment | Undocumented |
sphinx.environment.collectors.asset.DownloadFileCollector
, sphinx.environment.collectors.asset.ImageCollector
, sphinx.environment.collectors.dependencies.DependenciesCollector
, sphinx.environment.collectors.metadata.MetadataCollector
, sphinx.environment.collectors.title.TitleCollector
, sphinx.environment.collectors.toctree.TocTreeCollector
Process a document and gather specific data from it. This method is called after the document is read.
Parameters | |
app:Sphinx | Undocumented |
doctree:nodes.document | Undocumented |