class BuildEnvironment: (source)
The environment in which the ReST files are translated. Stores an inventory of cross-file targets and provides doctree transformations to resolve links to them.
Method | __getstate__ |
Obtains serializable data for pickling. |
Method | __init__ |
Undocumented |
Method | __setstate__ |
Undocumented |
Method | apply |
Apply all post-transforms. |
Method | check |
Do consistency checks. |
Method | check |
Undocumented |
Method | clear |
Remove all traces of a source file in the inventory. |
Method | collect |
Undocumented |
Method | doc2path |
Return the filename for the document name. |
Method | find |
Find all source files in the source dir and put them in self.found_docs. |
Method | get |
Read the doctree from the pickle, resolve cross-references and toctrees and return it. |
Method | get |
Read the doctree for a file from the pickle and return it. |
Method | get |
Return the domain instance with the specified name. |
Method | get |
Return (added, changed, removed) sets. |
Method | merge |
Merge global information gathered about *docnames* while reading them from the *other* environment. |
Method | new |
Return a serial number, e.g. for index entry targets. |
Method | note |
Add *filename* as a dependency of the current document. |
Method | note |
Add *filename* as a included from other document. |
Method | note |
Add the current document to the list of documents that will automatically be re-read at the next build. |
Method | path2doc |
Return the docname for the filename if the file is document. |
Method | prepare |
Prepare to set up environment for reading. |
Method | relfn2path |
Return paths to a file referenced from a document, relative to documentation root and absolute. |
Method | resolve |
Undocumented |
Method | resolve |
Resolve a *toctree* node into individual bullet lists with titles as items, returning None (if no containing titles are found) or a new node. |
Method | set |
This sets the doctree versioning method for this environment. |
Method | setup |
Set up BuildEnvironment object. |
Instance Variable | all |
Undocumented |
Instance Variable | app |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | dependencies |
Undocumented |
Instance Variable | dlfiles |
Undocumented |
Instance Variable | doctreedir |
Undocumented |
Instance Variable | domaindata |
Undocumented |
Instance Variable | domains |
Undocumented |
Instance Variable | events |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | glob |
Undocumented |
Instance Variable | images |
Undocumented |
Instance Variable | included |
Undocumented |
Instance Variable | longtitles |
Undocumented |
Instance Variable | metadata |
Undocumented |
Instance Variable | numbered |
Undocumented |
Instance Variable | original |
Undocumented |
Instance Variable | project |
Undocumented |
Instance Variable | ref |
Undocumented |
Instance Variable | reread |
Undocumented |
Instance Variable | settings |
Undocumented |
Instance Variable | srcdir |
Undocumented |
Instance Variable | temp |
Undocumented |
Instance Variable | titles |
Undocumented |
Instance Variable | toc |
Undocumented |
Instance Variable | toc |
Undocumented |
Instance Variable | toc |
Undocumented |
Instance Variable | tocs |
Undocumented |
Instance Variable | toctree |
Undocumented |
Instance Variable | version |
Undocumented |
Instance Variable | versioning |
Undocumented |
Instance Variable | versioning |
Undocumented |
Property | docname |
Returns the docname of the document currently being parsed. |
Property | found |
contains all existing docnames. |
Property | master |
Undocumented |
Method | _update |
Update configurations by new one. |
Method | _update |
Update settings by new config. |
Instance Variable | _pickled |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _search |
Undocumented |
Instance Variable | _write |
Undocumented |
Read the doctree from the pickle, resolve cross-references and toctrees and return it.
Parameters | |
docname:str | Undocumented |
builder:Builder | Undocumented |
doctree:nodes.document|None | Undocumented |
prunebool | Undocumented |
includehidden:bool | Undocumented |
Returns | |
nodes.document | Undocumented |
Read the doctree for a file from the pickle and return it.
Parameters | |
docname:str | Undocumented |
Returns | |
nodes.document | Undocumented |
Merge global information gathered about *docnames* while reading them from the *other* environment. This possibly comes from a parallel build process.
Parameters | |
docnames:list[ | Undocumented |
other:BuildEnvironment | Undocumented |
app:Sphinx | Undocumented |
Add *filename* as a dependency of the current document. This means that the document will be rebuilt if this file changes. *filename* should be absolute or relative to the source directory.
Parameters | |
filename:str | Undocumented |
Add *filename* as a included from other document. This means the document is not orphaned. *filename* should be absolute or relative to the source directory.
Parameters | |
filename:str | Undocumented |
Add the current document to the list of documents that will automatically be re-read at the next build.
Return paths to a file referenced from a document, relative to documentation root and absolute. In the input "filename", absolute filenames are taken as relative to the source dir, while relative filenames are relative to the dir of the containing document.
Parameters | |
filename:str | Undocumented |
docname:str|None | Undocumented |
Returns | |
tuple[ | Undocumented |
Undocumented
Parameters | |
doctree:nodes.document | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
Resolve a *toctree* node into individual bullet lists with titles as items, returning None (if no containing titles are found) or a new node. If *prune* is True, the tree is pruned to *maxdepth*, or if that is 0, to the value of the *maxdepth* option on the *toctree* node. If *titles_only* is True, only toplevel document titles will be in the resulting tree. If *collapse* is True, all branches not containing docname will be collapsed.
Parameters | |
docname:str | Undocumented |
builder:Builder | Undocumented |
toctree:addnodes.toctree | Undocumented |
prune:bool | Undocumented |
maxdepth:int | Undocumented |
titlesbool | Undocumented |
collapse:bool | Undocumented |
includehidden:bool | Undocumented |
Returns | |
Node|None | Undocumented |
This sets the doctree versioning method for this environment. Versioning methods are a builder property; only builders with the same versioning method can share the same doctree directory. Therefore, we raise an exception if the user tries to use an environment with an incompatible versioning method.
Parameters | |
method:str|Callable | Undocumented |
compare:bool | Undocumented |