Environment Collector API¶
- class sphinx.environment.collectors.EnvironmentCollector[źródło]¶
An EnvironmentCollector is a specific data collector from each document.
It gathers data and stores
BuildEnvironmentas a database. Examples of specific data would be images, download files, section titles, metadatas, index entries and toctrees, etc.Informacja
This class essentially wraps a sub-set of Sphinx event callbacks.
- clear_doc(app: Sphinx, env: BuildEnvironment, docname: str) None[źródło]¶
Remove specified data of a document.
This method is called on the removal of the document.
Zobacz także
- get_outdated_docs(app: Sphinx, env: BuildEnvironment, added: set[str], changed: set[str], removed: set[str]) list[str][źródło]¶
Return a list of docnames to re-read.
This method is called before reading the documents.
Zobacz także
- get_updated_docs(app: Sphinx, env: BuildEnvironment) list[str][źródło]¶
Return a list of docnames to re-read.
This method is called after reading the whole of documents.
Zobacz także
- merge_other(app: Sphinx, env: BuildEnvironment, docnames: Set[str], other: BuildEnvironment) None[źródło]¶
Merge in specified data regarding docnames from a different BuildEnvironment object which coming from a subprocess in parallel builds.
Zobacz także