2.5.12.36. Sphinx
- class buildbot.steps.python.Sphinx
Sphinx is the Python Documentation Generator. It uses RestructuredText as input format.
The Sphinx step will run sphinx-build or any other program specified in its sphinx argument and count the various warnings and error it detects.
from buildbot.plugins import steps
f.addStep(steps.Sphinx(sphinx_builddir="_build"))
This step takes the following arguments:
- sphinx_builddir
- (required) Name of the directory where the documentation will be generated. 
- sphinx_sourcedir
- (optional, defaulting to - .), Name the directory where the- conf.pyfile will be found
- sphinx_builder
- (optional) Indicates the builder to use. 
- sphinx
- (optional, defaulting to sphinx-build) Indicates the executable to run. 
- tags
- (optional) List of - tagsto pass to sphinx-build
- defines
- (optional) Dictionary of defines to overwrite values of the - conf.pyfile.
- strict_warnings
- (optional) Boolean, defaults to False. Treat all warnings as errors. 
- mode
- (optional) String, one of - fullor- incremental(the default). If set to- full, indicates to Sphinx to rebuild everything without re-using the previous build results.