1. Georg Brandl
  2. sphinx


sphinx / doc / sphinx-build.1

.TH sphinx-build 1 "Jan 2009" "Sphinx 0.6" "User Commands"
sphinx-build \- Sphinx documentation generator tool
.B sphinx-build
[\fIoptions\fR] <\fIsourcedir\fR> <\fIoutdir\fR> [\fIfilenames\fR...]
sphinx-build generates documentation from the files in <sourcedir> and places it
in the <outdir>.

sphinx-build looks for <sourcedir>/conf.py for the configuration settings.
.B sphinx-quickstart(1)
may be used to generate template files, including conf.py.

sphinx-build can create documentation in different formats.  A format is
selected by specifying the builder name on the command line; it defaults to
HTML.  Builders can also perform other tasks related to documentation

By default, everything that is outdated is built.  Output only for selected
files can be built by specifying individual filenames.

List of available builders:
HTML files generation.  This is default builder.
Generates files for CHM generation.
Generates files for Qt help collection generation.
Generates a LaTeX version of the documentation.
Generates a plain-text version of the documentation.
Generates HTML files listing changed/added/deprecated items for the
current version.
Checks the integrity of all external links in the documentation.
\fBpickle / json\fR
Generates serialized HTML files in the selected format.

\fB-b\fR <builder>
Builder to use; defaults to html. See the full list of builders above.
Generates output for all files; without this option only output for
new and changed files is generated.
Ignores cached files, forces to re-read all source files from disk.
\fB-c\fR <path>
Locates the conf.py file in the specified path instead of <sourcedir>.
Specifies that no conf.py file at all is to be used.  Configuration can
only be set with the -D option.
\fB-D\fR <setting>=<value>
Overrides a setting from the configuration file.
\fB-d\fR <path>
Path to cached files; defaults to <outdir>/.doctrees.
\fB-A\fR <name>=<value>
Passes a value into the HTML templates (only for html builders).
Prevents colored output.
Quiet operation, just prints warnings and errors on stderr.
Very quiet operation, doesn't print anything except for errors.
\fB-w\fR <file>
Write warnings and errors into the given file, in addition to stderr.
Turn warnings into errors.
Runs Pdb on exception.
.BR sphinx-quickstart(1)
Georg Brandl <georg@python.org>, Armin Ronacher <armin.ronacher@active-4.com> et
This manual page was initially written by Mikhail Gusarov
<dottedmag@dottedmag.net>, for the Debian project.