Scroll to navigation

SPHINX-BUILD(1) Sphinx SPHINX-BUILD(1)

NAME

sphinx-build - Sphinx documentation generator tool

SYNOPSIS

sphinx-build [options] <sourcedir> <outdir> [filenames ...]

DESCRIPTION

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. 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 processing.

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 file generation. This is the default builder.
Generates files for CHM (compiled help files) generation.
Generates files for Qt help collection generation.
Generates files for the GNOME Devhelp help viewer.
Generates LaTeX output that can be compiled to a PDF document.
Generates manual pages.
Generates Texinfo output that can be processed by makeinfo to generate an Info document.
Generates a plain-text version of the documentation.
Generates HTML files listing changed/added/deprecated items for the current version of the documented project.
Checks the integrity of all external links in the source.
Generates serialized HTML files for use in web applications.

OPTIONS

Builder to use; defaults to html. See the full list of builders above.
Generate output for all files; without this option only output for new and changed files is generated.
Ignore cached files, forces to re-read all source files from disk.
Locate the conf.py file in the specified path instead of <sourcedir>.
Specify that no conf.py file at all is to be used. Configuration can only be set with the -D option.
Override a setting from the configuration file.
Path to cached files; defaults to <outdir>/.doctrees.
Pass a value into the HTML templates (only for HTML builders).
Run in nit-picky mode, warn about all missing references.
Prevent colored output.
Quiet operation, just print warnings and errors on stderr.
Very quiet operation, don't print anything except for errors.
Write warnings and errors into the given file, in addition to stderr.
Turn warnings into errors.
Run Pdb on exception.

SEE ALSO

sphinx-quickstart(1)

AUTHOR

Georg Brandl <georg@python.org>, Armin Ronacher <armin.ronacher@active-4.com> et al.

This manual page was initially written by Mikhail Gusarov <dottedmag@dottedmag.net>, for the Debian project.

COPYRIGHT

2007-2011, Georg Brandl

November 3, 2016 1.1.3