@fixture(scope="<STR_LIT>")<EOL>def sphinx_build():
if os.path.exists(BUILD_DIRECTORY):<EOL><INDENT>shutil.rmtree(BUILD_DIRECTORY)<EOL><DEDENT>output = subprocess.check_output(<EOL>"<STR_LIT>", shell=True, cwd=DOCS_DIRECTORY,<EOL>stderr=subprocess.STDOUT<EOL>)<EOL>output += subprocess.check_output(<EOL>"<STR_LIT>", shell=True, cwd=DOCS_DIRECTORY,<EOL>stderr=subprocess.STDOUT<EOL>)<EOL>print(output.decode())<EOL>return output<EOL>
Build the documentation with sphinx and return the output.