def _sphinx_build(self, kind):
if kind not in ('<STR_LIT:html>', '<STR_LIT>'):<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'.format(kind))<EOL><DEDENT>cmd = ['<STR_LIT>', '<STR_LIT>', kind]<EOL>if self.num_jobs:<EOL><INDENT>cmd += ['<STR_LIT>', str(self.num_jobs)]<EOL><DEDENT>if self.warnings_are_errors:<EOL><INDENT>cmd += ['<STR_LIT>', '<STR_LIT>']<EOL><DEDENT>if self.verbosity:<EOL><INDENT>cmd.append('<STR_LIT>'.format('<STR_LIT:v>' * self.verbosity))<EOL><DEDENT>cmd += ['<STR_LIT>', os.path.join(BUILD_PATH, '<STR_LIT>'),<EOL>SOURCE_PATH, os.path.join(BUILD_PATH, kind)]<EOL>return subprocess.call(cmd)<EOL>
Call sphinx to build documentation.

Attribute `num_jobs` from the class is used.

Parameters
----------
kind : {'html', 'latex'}

Examples
--------
>>> DocBuilder(num_jobs=4)._sphinx_build('html')